I have application in VB.net that have two different form (Form1 and Form2).
Now I need to examine some condition and if condition is true then i set Form1 for startup for
and if it not then i set Form2 for startup form.
So is there anyway to dynamically call startup form?
Thanks!
If you look in the main execution method (normally
Program.csorProgram.vb) you’ll see the staticMain(string[] args)method. You could then use command line arguments to decide which form to display.Note the below example is in C# but should give you the general idea.