?
Solved

Determine what form is loaded at design time.

Posted on 2005-03-27
3
Medium Priority
?
142 Views
Last Modified: 2010-05-02
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?
0
Comment
Question by:NessieB
  • 2
3 Comments
 
LVL 23

Expert Comment

by:gecko_au2003
ID: 13640601
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
0
 

Author Comment

by:NessieB
ID: 13641006
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.!
0
 
LVL 23

Accepted Solution

by:
gecko_au2003 earned 1000 total points
ID: 13642127
In that case I have no idea, maybe wait for another expert to answer. I don't think that is possible but you never know lol :)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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.
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…
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…
Suggested Courses
Course of the Month9 days, 17 hours left to enroll

569 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