Hello
i have 5 forms in a project. Each form has seperate program.The problem is every time when i press F5 only form 1 exeucutes. I want to execute (test) each form separatly. What is the procedure
Thanks
Visual Basic Language
Hello
i have 5 forms in a project. Each form has seperate program.The problem is every time when i press F5 only form 1 exeucutes. I want to execute (test) each form separatly. What is the procedure
Thanks
There are several ways to do this, depending on what you want to do. Here are 3 simple ones.
If you just want to change your start up form, change the "Startup Form" setting in your application settings. The form you select will be the one used.
If you want to offer a choice using a command line parameter, use the Application Events. Click on "View Application Events" button on your My Project|Applications tab to create the Partial class. Then add code to MyApplication_Startup to parse the command line and show the desired form. You probably should also set the Shutdown mode to "When Last Form closes" in this scenario.
You could also create a switchboard form that would load your "application" forms and, when the selected form was closed, cycle back to the switchboard form. This requires a little more coding but isn't anything that difficult to do.
Sorry to bother you, I have tried looking for the option to change my startup form.
I right clicked my project which brought up the dialog box but under applications or any of the other tabs
i cannot find the option to change from form1 to form2. In the startup tab it only allows me to
change the startup project. Can u tell me what i am doing wrong
Can you direct me to the startup option in my application please All I can find is the startup project options, which only offers me one choice and that is the application name rather than a list of forms that i can choose to test them. Many thanks for getting back to me. I didnt get a notification so sorry for the late reply. I like the sound of the switchboard option and this is something I wish to use just hope it not too difficult to build it very easy in access this is my first attempt @ C#.