How page start up in windows application like web application?
Hi,
I have one doubt. I told yesterday that i am new for windows application. I am using web application. In our web application, we can use multiple files and what files we want to run that we give page start up options. But in windows application where is it? I am using two files in single application. I want to change default start up page. Hope your's reply.
Thanks
Re: How page start up in windows application like web application?
If by 'start up options' you mean command line arguments then you can set them for design time from the Project/Properties/Debug tab
Naturally, when you release your application it should be launched like:
yourapp.exe yourargumentlist
In your code, you can access and parse your command line arguments using My.Application.CommandLineArgs collection.
Re: How page start up in windows application like web application?
Hi dude,
Thanks for your's reply. I am telling that in our web application solution explorer -> file1.cs and right click that file, we have "set as start page" options. I dont see in windows application. Is this option is available or not in windows application?
Thanks
Re: How page start up in windows application like web application?
Menu Project / {Project name} Properties / Application tab - see the Startup form combo box.
Change the value to set the startup form.
Or use Sub Main to display forms manually.
Re: How page start up in windows application like web application?
You can also use the my.settings or a xml-file to store the "startup". On load, read the file and open the "startup".