Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another .NET Newby Question
Message
 
To
18/01/2005 00:24:15
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
00977955
Message ID:
00977959
Views:
33
That gave the error "Variables in Modules cannot be declared 'Shared'."

Also, I want to call a login form and return or otherwise 'get'
the UserName and Password.
DIM oLogin AS NEW frmLogin
oLogin.Show()
Now how do I get the UserName and Password?


Thanks





>>I have a VB.Net app. I have created a startup module. In it I create an instance of my Application object. In the app object I create other required objects such as the menu, toolbars, SQL Connection, etc.
>>
>>Problem is I can't see references to these other objects anwhere else except in the class I created them in.
>
>Did you try:
>
>
>Module Startup
>
>  Public Shared oApplication As New AppObject
>
>  Public Sub Main()
>
>    oApplication.StartApp()
>
>  End Sub
>
>End Module
>
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform