Designing Forms in VB.NET 2008


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Designing Forms in VB.NET 2008

  1. #1
    Join Date
    Jun 2004
    Posts
    4

    Wink 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.

  2. #2
    Join Date
    Sep 2008
    Posts
    86
    create the different forms to have whatever controls you want. Then create a new instance of the form, and show it.

  3. #3
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    On the rare occasion I need to display one form within another, I used a frame, and put the other form inside that.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  4. #4
    Join Date
    Nov 2005
    Posts
    15
    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.

  5. #5
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    You could do that in VB6 and earlier as well using Frames.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Replies: 12
    Last Post: 03-09-2010, 09:51 AM
  2. Replies: 2
    Last Post: 09-10-2005, 02:56 AM
  3. Over on the MS VB.NET group...
    By Tom Shelton in forum .NET
    Replies: 39
    Last Post: 11-08-2002, 06:23 AM
  4. Is VB.Not still a BEGINNERS' language?
    By Mark Burns in forum .NET
    Replies: 164
    Last Post: 03-13-2001, 12:43 PM
  5. VB.NET: 3 points of view
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center