Solved

Loading MainMenu form on Start Up

Posted on 2004-04-25
2
161 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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now