Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > How to change which window form get executed first ?
 

How to change which window form get executed first ?

Hi everyone,

This is my very first post so umm please bear with me if this sounds stupid. I've been working on C# especially on window form and I find it quite cool. Ok the problem is, I been doing a school assignment which involves many window forms (Main menu, game board, game score blur blur blur). I started working on game board window form and now I'm working on Main menu window form. The problem is I wanna invoke game board window form via Main menu window form but somehow I can't get my Main menu window form to get executed first. So it's like whenever I execute (or build ) the project my game board appear first but not the main menu. Is there anyway I can tweak around with this ? Thanks everyone in advance.

harrylynn  Saturday, July 11, 2009 12:46 PM
Hi,
Good luck in your assignment.
First search for the Main Method and choose look in "current project" it will look like the following:

static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
Now you can change the form1 to be what ever you need.

Thanks

Don’t forget to mark reply as answer if it answer your question
  • Marked As Answer byharrylynn Sunday, July 12, 2009 11:20 AM
  •  
M.Radwan  Saturday, July 11, 2009 11:49 PM
Hi,
Good luck in your assignment.
First search for the Main Method and choose look in "current project" it will look like the following:

static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
Now you can change the form1 to be what ever you need.

Thanks

Don’t forget to mark reply as answer if it answer your question
  • Marked As Answer byharrylynn Sunday, July 12, 2009 11:20 AM
  •  
M.Radwan  Saturday, July 11, 2009 11:49 PM

You can use google to search for other answers

Custom Search

More Threads

• Problem with business module creation (Smart Client Software Factory)
• Set version for Guidance Package
• Help with an error message
• Service Factory ( Data Access ) - Handling with transactions
• How to Create Web Service Agent ?
• How to add a single file in a <ProjectCollection>..</ProjectCollection>.
• Setup created using 1.3 doesent install on GAX 1.4
• guidance package with custom project extension
• Guidance Automation Manager not visible in Tools menu (VST2005)
• How to Validate Custom Argument