EDN Admin
Well-known member
<font color="#000000 I have just switched from VB to C# and am writing a Windows application. In VB you could easily change the startup form by selecting the properties of the project and moving to a dropdown where you could pick the form you want to use as the startup. I see no equivalent in C#. That is, there is a Startup Object dropdown, but it only lists the ProjectName.Project file. I see that I can go into the code of this file and rem out a line like this:</font>
<font color="#000000 Application.Run(new Invoices());</font>
<font color="#000000 and type in a line lke this:</font>
<font color="#000000 Application.Run(new Form2());</font>
<font color="#000000 This solves my problem. Just wondering if this is the orthodox way of doing things in C#? Someitmes, particularly when testing, you want to have another form start. What is the C# thinking on this?</font>
<font color="#000000 </font>
View the full article
<font color="#000000 Application.Run(new Invoices());</font>
<font color="#000000 and type in a line lke this:</font>
<font color="#000000 Application.Run(new Form2());</font>
<font color="#000000 This solves my problem. Just wondering if this is the orthodox way of doing things in C#? Someitmes, particularly when testing, you want to have another form start. What is the C# thinking on this?</font>
<font color="#000000 </font>
View the full article