Sub Main

A

ats@jbex

I have a project I am starting with Sub Main. In my Sub Main I currently
have one line of code which is frmMenu.Initialise

This event runs through some code that eventually shows the form. However,
once the form is loaded teh Sub Main continues on to its end and the
project just unloads. What am I missing?

TIA

--
ats@jbex

But I learned to burn that bridge and delete
Those who compete...at a level that's obsolete
Instead I warm my hands upon the flames of the flag
As I recall our downfall
And the business that burned us all
See through the news and the views that twist reality

Rage Against The Machine - Bombtrack
 
P

Patrice

A form is handled inside a loop that process events coming from this form.
If you just show the form, this loop is not started and the application
ends...

Try System.Windows.Forms.Application.Run where you shiould find some details
bout that (than using things like ShowDialog etc... does the same thing but
Run is more explicit to get used to it).
 
A

ats@jbex

A form is handled inside a loop that process events coming from this form.
If you just show the form, this loop is not started and the application
ends...

Try System.Windows.Forms.Application.Run where you shiould find some details
bout that (than using things like ShowDialog etc... does the same thing but
Run is more explicit to get used to it).

Thanks for that. Tried it and it works just fine :)

--
ats@jbex

No mercy for what we are doing
No thought to even what we have done
We don't need to feel the sorrow
No remorse for the helpless one

Metallica - No Remorse
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Dataset 2
Access Sub form opens before the main form in MS Access 0
Shared Sub Main 10
Program and Sub Main 1
Forms 3
Sub Main Not Found 2
Sub Main() refusing to work 16
How to make a splash from is sub main? 1

Top