Sub Main

  • Thread starter Thread starter ats@jbex
  • Start date Start date
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
 
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 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
 
Back
Top