473,473 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

When do I need/must to add a Usercontrol to Controls?

When do I need/must to add a Usercontrol to Controls?

Before I added the following, the NavigatorControl1 did not show when the
form was opened.
Me.EditEntries.Controls.Add(Me.NavigatorControl1)

I have another control that does not show itself but shows forms as needed.
This seems to be working OK without being in Controls

My question is what is Controls for and when should/must things be add to
it?

Just looking for some insight
Thanks

Nov 21 '05 #1
2 860
" Just Me" <gr****@a-znet.com> schrieb:
Before I added the following, the NavigatorControl1 did not show when the
form was opened.
Me.EditEntries.Controls.Add(Me.NavigatorControl1)

I have another control that does not show itself but shows forms as
needed.
This seems to be working OK without being in Controls

My question is what is Controls for and when should/must things be add to
it?

You will have to add controls to the form's/container's 'Controls'
collection if they should be shown /on/ the form.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
I take this to mean I have to add them ONLY if they are to be shown.

Thanks
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:up**************@TK2MSFTNGP12.phx.gbl...
" Just Me" <gr****@a-znet.com> schrieb:
Before I added the following, the NavigatorControl1 did not show when the
form was opened.
Me.EditEntries.Controls.Add(Me.NavigatorControl1)

I have another control that does not show itself but shows forms as
needed.
This seems to be working OK without being in Controls

My question is what is Controls for and when should/must things be add to
it?

You will have to add controls to the form's/container's 'Controls'
collection if they should be shown /on/ the form.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3

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

Similar topics

1
by: Rhy Mednick | last post by:
I'm creating a custom control (inherited from UserControl) that is displayed by other controls on the form. I would like for the control to disappear when the user clicks outside my control the...
2
by: Jaikumar | last post by:
Hi, 1) I have created one windows application, In the main form ( form1) i have added one usercontrol (usercontrol1), In that user control i am drawing one image. 2) In the UserControl1 i am...
5
by: Wysiwyg | last post by:
I'm new to c# programming and can't figure out how to avoid duplicating common code in multiple classes when I'm restricted to using different system base classes.. I'm using c# in asp.net to write...
0
by: Just Me | last post by:
When do I need/must to add a Usercontrol to Controls? Before I added the following, the NavigatorControl1 did not show when the form was opened. Me.EditEntries.Controls.Add(Me.NavigatorControl1)...
1
by: Philipp Lenz | last post by:
I'm very confused about how this works, all the tutorials out there show me how to apply a skin to a webcontrol, but I want to know how I can access the components of a control....for example: I...
1
by: Mesan | last post by:
I'm getting a "Cross-thread operation not valid" Exception and I can't figure out why. I've got a BackgroundWorker that creates a UserControl with a whole lot of other user controls inside of...
4
by: JaiPrakash Sharma | last post by:
Hi All, I have a question regarding Using a Windows based UserControl or Applications on the Web. My question is Must be the .NET Framework to be Installed on Client Machine, When any...
5
by: daniel.hedz | last post by:
I am generating a usercontrol dynamically successfully, but when I try to find that usercontrol I get a type mismatch. This is what I am doing: //Loading my usercontrol...
1
by: j-in-uk | last post by:
I have linkButtons on my page, onclick of the link button I want to load the proper usercontrol, this works fine the 1st time I click but when I click the 2nd linkButton I get "Failed to load...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
1
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...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.