How to sort application startup forms list in VB.NET project
up vote
0
down vote
favorite
I can't find the option/way to sort the list of forms to select the startup form:

Is there a way to sort it because I have to keep changing between forms during testing, which is very difficult to find in the list because of unsorted list.
vb.net visual-studio
|
show 1 more comment
up vote
0
down vote
favorite
I can't find the option/way to sort the list of forms to select the startup form:

Is there a way to sort it because I have to keep changing between forms during testing, which is very difficult to find in the list because of unsorted list.
vb.net visual-studio
It is a known annoyance: Startup Object, Form list not alphabetical. Upvote that issue if you want it to have a chance of being fixed.
– Andrew Morton
Nov 19 at 12:53
2
Use Sub Main so you can make the startup form anything you want. If you don't know how to write it then look at the Main() method of a C# project.
– Hans Passant
Nov 19 at 12:56
@AndrewMorton Done! This has always bothered me.
– Mary
Nov 19 at 21:04
@HansPassant In Program.cs a class called Program has a Sub Mainnew Form1().Show();In VB I find the following 1. Application.myapp under the <MyApplicationData> tag <MainForm>Form2</MainForm> changes when project properties are changed.
– Mary
Nov 19 at 22:08
@HansPassant 2. Application.Designer.vb (which says "do not modify it directly") there is a Partial class MyApplication containingSub OnCreateMainForm() Me.MainForm = Global.TestCode2.Form2 End Subalso changes when project project properties are changed. 3. ApplicationEvents.vb has another part of the MyApplication partial class which mentions a number of event which can be handled but not Sub Main. Where exactly would I add a Sub Main and will it change the other files that mention the start up form?
– Mary
Nov 19 at 22:08
|
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I can't find the option/way to sort the list of forms to select the startup form:

Is there a way to sort it because I have to keep changing between forms during testing, which is very difficult to find in the list because of unsorted list.
vb.net visual-studio
I can't find the option/way to sort the list of forms to select the startup form:

Is there a way to sort it because I have to keep changing between forms during testing, which is very difficult to find in the list because of unsorted list.
vb.net visual-studio
vb.net visual-studio
edited Nov 19 at 12:51
Andrew Morton
15.1k53049
15.1k53049
asked Nov 19 at 12:27
Haywards Tiwari
6
6
It is a known annoyance: Startup Object, Form list not alphabetical. Upvote that issue if you want it to have a chance of being fixed.
– Andrew Morton
Nov 19 at 12:53
2
Use Sub Main so you can make the startup form anything you want. If you don't know how to write it then look at the Main() method of a C# project.
– Hans Passant
Nov 19 at 12:56
@AndrewMorton Done! This has always bothered me.
– Mary
Nov 19 at 21:04
@HansPassant In Program.cs a class called Program has a Sub Mainnew Form1().Show();In VB I find the following 1. Application.myapp under the <MyApplicationData> tag <MainForm>Form2</MainForm> changes when project properties are changed.
– Mary
Nov 19 at 22:08
@HansPassant 2. Application.Designer.vb (which says "do not modify it directly") there is a Partial class MyApplication containingSub OnCreateMainForm() Me.MainForm = Global.TestCode2.Form2 End Subalso changes when project project properties are changed. 3. ApplicationEvents.vb has another part of the MyApplication partial class which mentions a number of event which can be handled but not Sub Main. Where exactly would I add a Sub Main and will it change the other files that mention the start up form?
– Mary
Nov 19 at 22:08
|
show 1 more comment
It is a known annoyance: Startup Object, Form list not alphabetical. Upvote that issue if you want it to have a chance of being fixed.
– Andrew Morton
Nov 19 at 12:53
2
Use Sub Main so you can make the startup form anything you want. If you don't know how to write it then look at the Main() method of a C# project.
– Hans Passant
Nov 19 at 12:56
@AndrewMorton Done! This has always bothered me.
– Mary
Nov 19 at 21:04
@HansPassant In Program.cs a class called Program has a Sub Mainnew Form1().Show();In VB I find the following 1. Application.myapp under the <MyApplicationData> tag <MainForm>Form2</MainForm> changes when project properties are changed.
– Mary
Nov 19 at 22:08
@HansPassant 2. Application.Designer.vb (which says "do not modify it directly") there is a Partial class MyApplication containingSub OnCreateMainForm() Me.MainForm = Global.TestCode2.Form2 End Subalso changes when project project properties are changed. 3. ApplicationEvents.vb has another part of the MyApplication partial class which mentions a number of event which can be handled but not Sub Main. Where exactly would I add a Sub Main and will it change the other files that mention the start up form?
– Mary
Nov 19 at 22:08
It is a known annoyance: Startup Object, Form list not alphabetical. Upvote that issue if you want it to have a chance of being fixed.
– Andrew Morton
Nov 19 at 12:53
It is a known annoyance: Startup Object, Form list not alphabetical. Upvote that issue if you want it to have a chance of being fixed.
– Andrew Morton
Nov 19 at 12:53
2
2
Use Sub Main so you can make the startup form anything you want. If you don't know how to write it then look at the Main() method of a C# project.
– Hans Passant
Nov 19 at 12:56
Use Sub Main so you can make the startup form anything you want. If you don't know how to write it then look at the Main() method of a C# project.
– Hans Passant
Nov 19 at 12:56
@AndrewMorton Done! This has always bothered me.
– Mary
Nov 19 at 21:04
@AndrewMorton Done! This has always bothered me.
– Mary
Nov 19 at 21:04
@HansPassant In Program.cs a class called Program has a Sub Main
new Form1().Show(); In VB I find the following 1. Application.myapp under the <MyApplicationData> tag <MainForm>Form2</MainForm> changes when project properties are changed.– Mary
Nov 19 at 22:08
@HansPassant In Program.cs a class called Program has a Sub Main
new Form1().Show(); In VB I find the following 1. Application.myapp under the <MyApplicationData> tag <MainForm>Form2</MainForm> changes when project properties are changed.– Mary
Nov 19 at 22:08
@HansPassant 2. Application.Designer.vb (which says "do not modify it directly") there is a Partial class MyApplication containing
Sub OnCreateMainForm() Me.MainForm = Global.TestCode2.Form2 End Sub also changes when project project properties are changed. 3. ApplicationEvents.vb has another part of the MyApplication partial class which mentions a number of event which can be handled but not Sub Main. Where exactly would I add a Sub Main and will it change the other files that mention the start up form?– Mary
Nov 19 at 22:08
@HansPassant 2. Application.Designer.vb (which says "do not modify it directly") there is a Partial class MyApplication containing
Sub OnCreateMainForm() Me.MainForm = Global.TestCode2.Form2 End Sub also changes when project project properties are changed. 3. ApplicationEvents.vb has another part of the MyApplication partial class which mentions a number of event which can be handled but not Sub Main. Where exactly would I add a Sub Main and will it change the other files that mention the start up form?– Mary
Nov 19 at 22:08
|
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53374651%2fhow-to-sort-application-startup-forms-list-in-vb-net-project%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It is a known annoyance: Startup Object, Form list not alphabetical. Upvote that issue if you want it to have a chance of being fixed.
– Andrew Morton
Nov 19 at 12:53
2
Use Sub Main so you can make the startup form anything you want. If you don't know how to write it then look at the Main() method of a C# project.
– Hans Passant
Nov 19 at 12:56
@AndrewMorton Done! This has always bothered me.
– Mary
Nov 19 at 21:04
@HansPassant In Program.cs a class called Program has a Sub Main
new Form1().Show();In VB I find the following 1. Application.myapp under the <MyApplicationData> tag <MainForm>Form2</MainForm> changes when project properties are changed.– Mary
Nov 19 at 22:08
@HansPassant 2. Application.Designer.vb (which says "do not modify it directly") there is a Partial class MyApplication containing
Sub OnCreateMainForm() Me.MainForm = Global.TestCode2.Form2 End Subalso changes when project project properties are changed. 3. ApplicationEvents.vb has another part of the MyApplication partial class which mentions a number of event which can be handled but not Sub Main. Where exactly would I add a Sub Main and will it change the other files that mention the start up form?– Mary
Nov 19 at 22:08