Link to home
Start Free TrialLog in
Avatar of NessieB
NessieBFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Determine what form is loaded at design time.

My vb project has 5 forms. The one I do most work on has to be loaded after the project opens another form first. So, how do I make the form I need most load first when I open the project at design time?
Can anybody help with this annoying problem?
Avatar of Shane Russell
Shane Russell
Flag of United Kingdom of Great Britain and Northern Ireland image

You mean as in when you go to Project --> Project1 Properties --> then there is a combo box to allow you to select your startup item , from there select the one you want to start up first.

Other then that just put FormName.Show in the form_load event so that the other one shows and if you want the first one to hide then put FormName.Hide

For example (This is assuming Form2 is the one you want to show as it is the one you use most and Form1 is the one you use least ):

Private Sub Form_Load()
Form1.hide
Form2.Show
End Sub
Avatar of NessieB

ASKER

Sorry - no thatisntwhatI meant.
When you open your project.vbp; the code design forms load in a cetain order. I want the code form that I dothemost work on to load uppermost to saveme from continually havingto select it fromthe project explorer. It drives me mad that I have always select the required form before I can work on it.!
ASKER CERTIFIED SOLUTION
Avatar of Shane Russell
Shane Russell
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial