Thread: Multiple Forms in C#

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    11

    Multiple Forms in C#

    Sorry. I am new at C# and trying to begin my project. I know VB and C++, but I cannot figure out how to make another form show up.

    I have button1, and when clicked, i want form Start to show.

    I thought I almost had it by trying

    Start start; start.Show(); but it said start was an unreferenced local variable. Can Anyone help me please. I know this is probably really easy, but ya know, gotta know how to do it.

    Tperry

  2. #2
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    986
    Code:
    Start start = new Start();
    start.Show();

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    11

    Thanks

    Thanks!.. I knew it had to be easy..was just putting it in the wrong way.

    Tperry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 06-08-2009, 03:03 PM
  2. prob with multiple forms accessing header file
    By silkyt in forum Windows Programming
    Replies: 7
    Last Post: 11-03-2007, 04:14 PM
  3. Phantom redefinition
    By CodeMonkey in forum C++ Programming
    Replies: 6
    Last Post: 06-12-2005, 05:42 PM
  4. Linker errors - Multiple Source files
    By nkhambal in forum C Programming
    Replies: 3
    Last Post: 04-24-2005, 02:41 AM
  5. Replies: 1
    Last Post: 05-01-2003, 02:52 PM