RE: HOWTO: Use application global variables in VB.
Posted: 3/13/2006 8:35:50 AM
By: Comfortably Anonymous
Times Read: 1,917
0 Dislikes: 0
Topic: Programming: .NET Framework
Parent Message
Interesting. I've always dismissed Modules as too VB 6-ish, so never attempted them.

I went ahead and made a quick test and for WinForms apps, that's a great idea. I don't do much, if any, WinForms coding, so had never had a need to use them.

However, as far as ASP.NET apps go, it doesn't look like you can add/use modules in your code. Seems to be a WinForms-only thing. So you'll have to use my example for ASP.NET apps, but for WinForms it looks like the better way to do things is to use Modules.

Thanks!
Rating: (You must be logged in to vote)