Information générale
Catégorie:
Code, syntaxe and commandes
Hi Michel,
the global.asax is not in windows apps...
Look at the property pages for the project:
you can define a startup form and consider that as a "main program".
You can also check for ApplicationEvents, clicking on the button on the bottom right on the project property page ("view Application Event" button).
I've not yet used them (I'm learnig vb2005 too), but there are events named:
Startup, Shutdown, UnhandledException, StartupNextInstance, and NetworkAvailabilityChanged (the last sound really useful)
HTH
franco
>>Sub Main() ?
>
>In which component? Global.asax, a class, a form...?
>
>>BTW, I see from other threads that you are using VB but it's not obvious from the category. Would it be better to have seperate VB and C# categories? Same type of problem sometimes applies in determining whether a question relates to WinForms or ASP.NET.
>
>If we would have more traffic, we could have dedicated forums. For now, it's better to have it like that. We might add more categories however. If you have suggestions on adjusting, let me know.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement