first the main form is loaded .. and then the < form load > is loaded .. and then the buttons do the rest
2006-09-15 14:53:53
·
answer #1
·
answered by Luay14 6
·
0⤊
0⤋
It's been a while since I've used it,but lets see if I can make any sense.
VB is an event oriented environment. Frequently there is just one program called a form and a lot of modules, functions, etc.YOU control when the these things run by defining the events (mouse clicks, data entry, what ever) that run them. In it's simplest form it doesn't matter WHERE the modules and functions are placed in the 'program', when an event occurs that trigger it, it runs.
One form can invoke another form, but that too is under your control
Of course, you can also force it to function like a typical sequential programming language, But if that's what you need, you'd get better results with a traditional language.
2006-09-15 21:58:10
·
answer #2
·
answered by glenbarrington 7
·
0⤊
0⤋
The first procedure to run is determined by the choice in Project | Project Properties, in the Startup Object combo box. If you pick a form, Visual Basic will instantiate an instance of that form when the program runs; the first event is Form_Initialize.
If you select Sub Main, Visual Basic will run your module function called Main, from which you can load a form if you choose. Use this option without creating a form to make a Visual Basic program run hidden.
2006-09-15 22:01:32
·
answer #3
·
answered by jacinablackbox 4
·
0⤊
0⤋
It depends on what is set in the Project Property window. You can set it any form or the 'Main' sub in your project. When you open a new project, the default is 'Form1', the default form added in you new project. But then again, you can change it.
For free and working VB source codes, visit http://smartcoder.co.nr
KaBalweg
http://smartcoder.co.nr
2006-09-15 22:13:14
·
answer #4
·
answered by dabsani 3
·
0⤊
0⤋