B
Bob Day
Usinb VS2003, VB.net, MSDE...
Is there any advantage to these three alternatives as the start up object in
the solution property pages for a winform solution on a stand alone desktop?
1 - Sub Main in module that starts WinForm_Main
2 - Shared Sub Main in WinForm_Main itself
3 - Using WinForm_Main as start up object with no Sub Main anywhere
I have seen sample programs use all 3 of these, and I am not sure what the
best practice is. It seems to be that a Sub Main (or Shared Sub Main with
form load empty) is the best approach, since you could try/catch there,
essentially catching all uncaught exceptions (I am not sure where you would
do that if WinForm_Main were the start up object).
I don't see any difference in Sub Main being in the WinForm_Main or a
seperate module.
What are the pros and cons, if any? Any URL to such an info would be
appreciated.
Thanks!
Bob Day
Is there any advantage to these three alternatives as the start up object in
the solution property pages for a winform solution on a stand alone desktop?
1 - Sub Main in module that starts WinForm_Main
2 - Shared Sub Main in WinForm_Main itself
3 - Using WinForm_Main as start up object with no Sub Main anywhere
I have seen sample programs use all 3 of these, and I am not sure what the
best practice is. It seems to be that a Sub Main (or Shared Sub Main with
form load empty) is the best approach, since you could try/catch there,
essentially catching all uncaught exceptions (I am not sure where you would
do that if WinForm_Main were the start up object).
I don't see any difference in Sub Main being in the WinForm_Main or a
seperate module.
What are the pros and cons, if any? Any URL to such an info would be
appreciated.
Thanks!
Bob Day