Closed Thread
Results 1 to 4 of 4

Thread: Switching Between Windows Forms

  1. #1
    karateboy02 is offline Newbie
    Join Date
    Jul 2007
    Posts
    6
    Rep Power
    0

    Switching Between Windows Forms

    In my program I launch a windows form from another windows form. The flow breakdown is as follows.

    User starts program (a windows form).
    User clicks on button and launches a second windows form.

    After the second form is launched I cannot go back to the first form unless I close the second one. Does anyone know how I can keep both forms open and switch between the two of them freely?

    Thanks in advance.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest
    I'm guessing that you are opening the second form with: formName.ShowDialog()? If so, try using just formName.Show();

    Let us know if it works properly.

  4. #3
    karateboy02 is offline Newbie
    Join Date
    Jul 2007
    Posts
    6
    Rep Power
    0
    Yep that was it. I had figured that out about 10 minutes before I seen this post. Thanks so much for the help.

  5. #4
    Lop's Avatar
    Lop
    Lop is offline Speaks fluent binary
    Join Date
    May 2006
    Posts
    1,178
    Rep Power
    30
    I do that a lot. I'll post a question and immediately find the answer.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Switching between forms
    By Nixon in forum C# Programming
    Replies: 9
    Last Post: 08-01-2011, 08:56 AM
  2. problem with switching windows in c#
    By poz in forum C# Programming
    Replies: 2
    Last Post: 04-09-2011, 02:23 AM
  3. Events in Windows Forms
    By Hunter100 in forum Managed C++
    Replies: 2
    Last Post: 07-06-2010, 09:09 PM
  4. C# windows forms tutorials?
    By killcode in forum C# Programming
    Replies: 2
    Last Post: 05-14-2009, 06:10 AM
  5. Windows Forms MDI question.
    By hoser2001 in forum C# Programming
    Replies: 10
    Last Post: 08-11-2006, 04:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts