Solved

Loading MainMenu form on Start Up

Posted on 2004-04-25
2
165 Views
Last Modified: 2010-05-02
Hi,

Im running 2 forms in my app
frmCustomers
frmMainMenu
and 1 module used for a DB connection... ive set my project start up as SUB MAIN (which is in the module)... and in result frmCustomer loads when i start up the application

but i want the frmMainMenu to load first... what do i do?

an additional 100 (split) awarded to ryancys and acperkins
for replying to this question
0
Comment
Question by:igotnosmoke
2 Comments
 
LVL 7

Accepted Solution

by:
IT-Schubertz earned 50 total points
ID: 10915934
Hi,

you have two possibilities:
First:
in your sub main you do a
load frmMainMenu
or frmMainMenu.Show
this would be the choice if you do need to run your sub main at startup.

the second option would be under Project --> Preferences --> you can select your startup object (sub main or any form).
But if you choose this, remember that your sub_main won't be executed unless you directly call it.

Greetings

Andy
0
 
LVL 1

Expert Comment

by:i_rajeevsingh
ID: 10916567
Code will be like in

Sub Main()

load frmMainMenu
frmMainMenu.show

End sub

or if you want to load when loading application then

Project --> Preferences--> Startup Form
Select from the drop down box
Rajeev
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question