Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Initialization code for Windows application
Message
 
À
20/12/2005 10:25:54
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01079434
Message ID:
01079570
Vues:
17
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
Fil
Voir

Click here to load this message in the networking platform