-
Designing Forms in VB.NET 2008
Hi,
I am transitioning from VB6 to VB.NET 2008 environment.
Suppose I have a ToolStrip1 at the top of my Form1.
I want to be able to display different forms within Form1 when I click on buttons on my ToolStrip1.
So if I click on Button1, I will display FormA within Form1. If I click on Button2, I will display FormB. And so forth.
How do I accomplish this? Which controls do I use to display FormA, FormB, ... within Form1?
In VB6, I used a 3rd Party Splitter control and assigned the FormA.hwnd to a Pane of my Splitter control within Form1.
Thanks,
Vince.
-
create the different forms to have whatever controls you want. Then create a new instance of the form, and show it.
-
On the rare occasion I need to display one form within another, I used a frame, and put the other form inside that.
-
HI Vinny,
In VS 2008, you dont need to display multiple forms. You can use the panel controls to put controls within it and hide and display the appropriate panels.
-
You could do that in VB6 and earlier as well using Frames.
Similar Threads
-
By sathya_k_83 in forum .NET
Replies: 12
Last Post: 03-09-2010, 09:51 AM
-
Replies: 2
Last Post: 09-10-2005, 02:56 AM
-
By Tom Shelton in forum .NET
Replies: 39
Last Post: 11-08-2002, 06:23 AM
-
By Mark Burns in forum .NET
Replies: 164
Last Post: 03-13-2001, 12:43 PM
-
By David Kroll in forum .NET
Replies: 33
Last Post: 02-13-2001, 10:23 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|