Proqrammer
Programmer
- Sep 17, 2006
- 64
Hi there,
In vb 2003, I was able to set a module as starting point of the project and the module was being executed by the compiler before any other thing.
Now in vb 2005, you can't set a module as starting point of the project, it seems like you must choose a form instead.
My first question is, how can I set a module as starting point. I wanna have variables that are globally available in my project, and I usually define them as public variables in a module.
The second issue is, I have a module in my project, and even though I haven't set it to be executed before forms, the compiler does executed before anything else.
But sometimes for an unknown reason when I build the project, it doesn't execute the module and starts the project by starting the first form which is set in project properties.
Why is that?
In vb 2003, I was able to set a module as starting point of the project and the module was being executed by the compiler before any other thing.
Now in vb 2005, you can't set a module as starting point of the project, it seems like you must choose a form instead.
My first question is, how can I set a module as starting point. I wanna have variables that are globally available in my project, and I usually define them as public variables in a module.
The second issue is, I have a module in my project, and even though I haven't set it to be executed before forms, the compiler does executed before anything else.
But sometimes for an unknown reason when I build the project, it doesn't execute the module and starts the project by starting the first form which is set in project properties.
Why is that?