Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Initialization code for Windows application
Message
 
To
20/12/2005 10:25:54
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01079434
Message ID:
01079570
Views:
16
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform