473,405 Members | 2,282 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,405 software developers and data experts.

Adding panel to base Form? Cannot see controls.

I have a windows Form that inherits from Base_form. In Base_form I added a
panel that covers the whole Form (panel1.Dock = Fill). The problem is that
all the controls in the Form that inherit from Base_form are "under" this
panel, which means they're not visible..
Is it possible to make these controls visible again without having to make
major changes in the Form?

Thanks.

VS2005
Jul 11 '07 #1
3 2747
On Wed, 11 Jul 2007 14:33:04 -0700, Doc John <no <"email>"wrote:
[...] The problem is that
all the controls in the Form that inherit from Base_form are "under" this
panel, which means they're not visible..
Is it possible to make these controls visible again without having to
make
major changes in the Form?
There may be something you can do in the designer so that the control
starts out in the right place.

However, one thing you can definitely do is in your constructor, call
SendToBack() on the panel that's covering everything else up.

Pete
Jul 11 '07 #2
Hi Doc,

It seems that you have set the Modifiers property of Panel in the Base_Form
to private.

When a control's Modifiers property is set to private on a base form, we
couldn't access the control in the inherited form. If you select the
control on the inherited form, you should see that all the properties of
the control are readonly in the Properties window.

In your scenario, when you're attempting to add a control onto the Panel in
the derived form, the designer would like to generate code to add the
control into the Panel. However, the problem is that the Panel could not be
accessed in the inherited form, so that the control can not be added to the
Panel at all.

To make the Panel available in the inherited form, change the Panel's
Modifiers property to protected or public and then build the project.
Reopen the Form that inherits from the Base_Form and you should be able to
add controls onto the Panel in the inherited form.

Hope this helps.
If you have any question, please feel free to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 12 '07 #3
Hi Doc,

How about the problem now?

If the problem is still not solved, please feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!

Sincerely,
Linda Liu
Microsoft Online Community Support

Jul 16 '07 #4

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

Similar topics

5
by: Bob Ranck | last post by:
Lets say we build a BaseForm with several controls (as an abstract form). Then we inherit this Base Form as the "foundation" for a New WorkingForm. Next we make an MDI Form and call the...
2
by: Yasutaka Ito | last post by:
Hi folks! I have a BaseForm class that inherits System.Windows.Forms.Form. It has a property, whose value I need supplied by the class that inherits it. The BaseForm usees the value supplied...
0
by: Patrick Corkum | last post by:
Hello, I am having a really annoying problem. I have a base form, say FormA, and this form has some buttons on it with images (which are stored in the resx file). I then have FormB, which...
2
by: Rachel Suddeth | last post by:
I have a base form (Windows.Forms) that really should be abstract. There are certain methods that must be overridden. However, if I make it abstract, I can not get designer support. (VS tells me "...
5
by: Antuane | last post by:
is it possible for me to create a base form class, & then some how configure VB.NET, so that when ever i create a new form, it will automatically be based on the above form class. i know i can...
1
by: Mian Mahboob | last post by:
hi At Runtime i add a Form in designing time panel Control. on that form i add couple of user controls. i want to comuncated each of usercontrol's on my Form which is execute on Runtime...
1
by: Demi | last post by:
I want to be able to define standard colors in a base form, then have child forms use those values instead of standard colors. Ex in my base form I want to do this: Color myColor =...
7
by: Marc | last post by:
Hi, I am using the below code to add a button to form. However it is not working. If I change the form name from 'form1' to 'me' it does add the button to the current form...any ideas. Also...
2
by: parez | last post by:
how do i put an abstract property ( or something that lets me know that derived class has not implemented that particular property ) in base form in my win forms project? if i make the base form...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.