473,394 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Form Inheritance

Joe
Hello,

I created a base form with a few textbox and button controls on
it. I then created a child form from this base form using the Add
Item process in Visual Studio 2005.

Problem: All of my controls on the child form are locked and
I cannot seem to unlock them.

Anyone know how I can create a child form where the controls
are NOT locked or else unlock the controls after the child form has
been created?
J
Feb 28 '08 #1
3 2122
What do you mean by "locked"? They are inherited, and their position, size
and so on are set in the base controls InitializeComponent() event, so you
can't modify them from the derived control. You would have problems if this
was allowed, since two controls could try to "reconfigure" the base's controls.
Hello,

I created a base form with a few textbox and button controls on
it. I then created a child form from this base form using the Add
Item process in Visual Studio 2005.

Problem: All of my controls on the child form are locked and
I cannot seem to unlock them.

Anyone know how I can create a child form where the controls
are NOT locked or else unlock the controls after the child form has
been created?

J

Feb 28 '08 #2
Joe,

As you use verbs which has no meaning, you seldom get an answer here or it
should be your goal to get a long line of not understand answers and
replies.

Locked has not any meaning here it can be not enabled, not visible, read
only etc..

Cor

Feb 29 '08 #3


"Jack Jackson" wrote:
On Fri, 29 Feb 2008 06:25:50 +0100, "Cor Ligthert[MVP]"
<no************@planet.nlwrote:
Joe,

As you use verbs which has no meaning, you seldom get an answer here or it
should be your goal to get a long line of not understand answers and
replies.

Locked has not any meaning here it can be not enabled, not visible, read
only etc..

Cor

Actually I think "locked" is not a bad word since when you click on
one of those items in the designer you see a little locked padlock on
the item.
Yeah. And Cor: those are technically adjectives. I guess you could argue
that "enabled" and "locked" are verb participles or something nerdy like
that, but you mentioned "visible" which is clearly an adjective. I understand
your basic point but you don't have to be a jerk about it.

Or does Microsoft formally require that now?
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Hemraj Julha | last post by:
Hi (Sorry if this appears twice but I posted this yersterday and I can't see it in the forum today) I'm trying "Visual Inheritance" in C# and facing an issue which might be related to my...
1
by: Hemraj Julha | last post by:
Hi I'm trying "Visual Inheritance" in C# and facing an issue which might be related to my ignorance about namespaces and location of the source code within the folders so I'll try to explain my...
3
by: Peter Cresswell | last post by:
Hi guys/gals, I'm using VS.net 2003 and having trouble with the following: I am trying to inherit a base class into a web form, but VS will then not allow me to add any ASP.NET controls using...
0
by: Frnak McKenney | last post by:
I'm running into problems with VisualStudio.NET2003 and Windows Forms inheritance. It _feels_ like a bug, but it could just as well be a misunderstanding on my part regarding how the VS Designer...
11
by: PAul Maskens | last post by:
The form designer adds unnecessary code to the section when using a subclassed control. I've reproduced this in VS.NET 2002 and VS.NET 2003 so it's pretty fundamental. Outline steps: Create a...
13
by: Just Me | last post by:
I have two forms. Each contains a property, say Prop. I do Public FormBeingUsed as Form .. .. .. Then I do FormBeingUsed= Form1 or maybe
4
by: Alan T | last post by:
How do I create a form inherited from an existing form in the same project ?
4
by: Mikus Sleiners | last post by:
I can't seem to add new controls to form that is inherited from another form. I have BaseForm wich have table layout on it 2 panelsm and some buttons. Now i create InheritedForm : BaseForm and...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
7
by: ademirzanetti | last post by:
Hi there !!! I would like to listen your opinions about inherit from a STL class like list. For example, do you think it is a good approach if I inherit from list to create something like...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.