473,511 Members | 16,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

If the form you want to load at runtime isn't the first form created

I've gone through the newsgroups and I don't think I found the answer to my
question.

My question does anyone know the coding to show a form at runtime if it's
not the first form created, since by default VB runs the first form that's
created. I've looked in my VB book from school to see if the coding is in,
but I think my instructor told us the code.

It's been over 2 years since I've done any VB programming and like the dummy
I am, i don't have any of my old programs *laughing*. So any assistance will
be appreciated.
Jul 17 '05 #1
3 2233
Go to the Project/Properties on VB's menu and change the Startup Object to
the form you want.

Rick - MVP
"A Future Computer Scientist" <th******@collegeclub.com> wrote in message
news:bk***********@news3.infoave.net...
I've gone through the newsgroups and I don't think I found the answer to my question.

My question does anyone know the coding to show a form at runtime if it's
not the first form created, since by default VB runs the first form that's
created. I've looked in my VB book from school to see if the coding is in,
but I think my instructor told us the code.

It's been over 2 years since I've done any VB programming and like the dummy I am, i don't have any of my old programs *laughing*. So any assistance will be appreciated.

Jul 17 '05 #2
"A Future Computer Scientist" <th******@collegeclub.com>
wrote in news:bk***********@news3.infoave.net:
I've gone through the newsgroups and I don't think I found
the answer to my question.

My question does anyone know the coding to show a form at
runtime if it's not the first form created, since by
default VB runs the first form that's created. I've looked
in my VB book from school to see if the coding is in, but I
think my instructor told us the code.

It's been over 2 years since I've done any VB programming
and like the dummy I am, i don't have any of my old
programs *laughing*. So any assistance will be appreciated.

Rick is absolutely correct, however, I prefer controlling this
from code which is what you asked for. My programs start from
the "main" subroutine and in that routine, you will find
something like this:

myform.show
--
Robert L. Berman
Database consultant
Vulcan Software Services

Jul 17 '05 #3
I agree with Robert (Almost). if you use a code module then it's good
practise to always set the properties to start in the Main of the module.

However, (this is the 'Almost' bit) if you code is small and only has forms
and no modules then of course Rick is right.
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
281
by: Marcin Floryan | last post by:
Hello! My question regards opening (and re-opening) Form and the Load event. I have a main form (frmMain) and I also have a data form (frmData). In the main form I have created: Private...
2
2614
by: misseill | last post by:
Hi there, I am currently working on converting a program from Access 97 to Access 2003. It all worked fine in 97, but there is some randomness in 2003 that I don't understand. I have a form,...
11
18805
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
9
2799
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
10
4394
by: B-Dog | last post by:
I want to run something once my form in completely loaded and drawn but running at the end of form load doesn't do I guess cause of the large dataset fill and the form isn't fully loaded. Where...
9
18003
by: RvGrah | last post by:
I'm completely new to using background threading, though I have downloaded and run through several samples and understood how they worked. My question is: I have an app whose primary form...
10
7036
by: menashay | last post by:
Hello, I am absolute beginner in C# so pardon me if the following question is too easy. I have a form with a one button. When I click the button I want to display a message that reads...
15
2151
by: Kevin Davis | last post by:
Hello, I'm a new person when it comes to PHP and I have a quick question. I would like to create a form that will allow the user to add more information using the same form in case they have...
4
2297
by: kimiraikkonen | last post by:
Hi, On my system which is 2.4GHZ P4 CPU, 1GB memory + 64MB DDR graphic card, if i create a simple picturebox docked on a form sized about 500x350 or less or more, doesn't matter, and also if i...
0
7245
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7144
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7427
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5671
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5069
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.