473,225 Members | 1,402 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,225 software developers and data experts.

How to Overlap User Controls in Windows Application?

I know the answer is simple ... as soon as I find it.

I have a Windows Application in which I want to display a different
User Control in the bottom part of the form depending on the
functionality chosen by the user.

I have made several User Controls and they now show up in my toolbox.

How do I put them all on the bottom part of the form (including
docking) and make only one visible when needed?

Thanks.
Jun 27 '08 #1
2 5935
I usually use a Panel for this. You can easily hide/show an entire panel.
The trick is dealing with these panels in the Designer.
--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
"sa**********@gmail.com" wrote:
I know the answer is simple ... as soon as I find it.

I have a Windows Application in which I want to display a different
User Control in the bottom part of the form depending on the
functionality chosen by the user.

I have made several User Controls and they now show up in my toolbox.

How do I put them all on the bottom part of the form (including
docking) and make only one visible when needed?

Thanks.
Jun 27 '08 #2
On Wed, 30 Apr 2008 07:32:32 -0700, <sa**********@gmail.comwrote:
I know the answer is simple ... as soon as I find it.

I have a Windows Application in which I want to display a different
User Control in the bottom part of the form depending on the
functionality chosen by the user.

I have made several User Controls and they now show up in my toolbox.

How do I put them all on the bottom part of the form (including
docking) and make only one visible when needed?
Just drag them all into your form. You can initialize them all with the
Visible property as "false". Or if you have one that you want to be
visible by default, leave that one's Visible property as "true".

You can use the Tab key in Visual Studio to change the currently selected
control, once one control is selected. This is very useful when you have
multiple overlapping controls that make it impossible to actually click on
one or more that's under another control.

You could do the same thing putting them into a Panel I suppose, as Peter
R. suggests. But I'm not sure why you'd bother, since a UserControl is
pretty similar to a Panel anyway. You can show and hide individual
UserControls just as easily as a Panel that contains a UserControl.

Pete
Jun 27 '08 #3

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

Similar topics

2
by: migue | last post by:
way below newbie level: I know nothing about .Net. Have a VB6 client-server application (business app, inventory, purchasing, invoicing, etc.) and am considering converting it to VB.Net at a...
0
by: dag | last post by:
Hi! I would like to do an overlap window, over my main window (of my application), with a Progress Bar. Exactly when I push a button of my application I want show a window, with a Progress bar,...
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...
0
by: JIM.H. | last post by:
Hello, I have a ReportViewer and a DropDownList controls in my application. In the design view I see they do not overlap but when I run the application they overlap each other, how can I get them...
4
by: DotNetJunkies User | last post by:
I have created a User Control (a Pareto Chart) using C#. It works great in .Net Windows Apps, but I also need to use it in a Web Application (to view in IE). Everything I read on this seems to be...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
2
by: Dan Aldean | last post by:
Hello, I place in a web application some controls: labels, text boxes, buttons. Labels tend to overlap the text boxes if the text is long and the text box is not placed far enough from the...
1
by: npaulus | last post by:
Hi, I am trying to dynamically add user controls on to my web form but for some reason my form isnt displaying the user control. form1.cs: using System; using System.Drawing; using...
3
by: Terry Olsen | last post by:
I'm trying to add a domain user to a local group using the code below: Dim LCL As New DirectoryEntry("WinNT://" + Environment.MachineName + ",computer") Dim DOM As New...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.