How to sort application startup forms list in VB.NET project











up vote
0
down vote

favorite
1












I can't find the option/way to sort the list of forms to select the startup form:



Please click to see the screenshot



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.










share|improve this question
























  • 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 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















up vote
0
down vote

favorite
1












I can't find the option/way to sort the list of forms to select the startup form:



Please click to see the screenshot



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.










share|improve this question
























  • 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 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













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





I can't find the option/way to sort the list of forms to select the startup form:



Please click to see the screenshot



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.










share|improve this question















I can't find the option/way to sort the list of forms to select the startup form:



Please click to see the screenshot



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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


















  • 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 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
















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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Ottavio Pratesi

Tricia Helfer

15 giugno