Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

First Form to Display? 1

Status
Not open for further replies.

jl280328

Programmer
Jun 15, 2006
97
US
How do I change which form should display first when the program is opened up?
 
In VB, click Project -> Properties

The General tab has a Startup Object where you can change the form that is used.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Another way to control the start up of your application which i think is best coz it gives me control, is to change the setting gmmastros said to 'Sub Main' and create in a module the following sub

Public Sub Main
' Add code to do at start-up if any?
form1.show ' Show the form you want
End Sub

Regards,
Darren.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top