Ask a questionAsk a question
 

Answerdebugging

  • Sunday, November 08, 2009 3:28 AMAung Han Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    When I debug a project, it just run only for the first windows application form. What I want to know is I can run both forms files?

Answers

  • Sunday, November 08, 2009 4:27 AMTamer OzMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    You can set a breakpoint at load event of your Form2 if you are opening it from Form1.

    If you are not opening Form2 currently you should go  to Program.cs and change the line below.

    Application.Run(new Form9());
    
    That basicly indicates your application will start with opening Form9, if you change this to Form2 your second form will open when you run the project.

All Replies

  • Sunday, November 08, 2009 4:27 AMTamer OzMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    You can set a breakpoint at load event of your Form2 if you are opening it from Form1.

    If you are not opening Form2 currently you should go  to Program.cs and change the line below.

    Application.Run(new Form9());
    
    That basicly indicates your application will start with opening Form9, if you change this to Form2 your second form will open when you run the project.