Multiple Forms in C#

This is a discussion on Multiple Forms in C# within the C# Programming forums, part of the General Programming Boards category; Sorry. I am new at C# and trying to begin my project. I know VB and C++, but I cannot ...

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21