Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another .NET Newby Question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
00977955
Message ID:
00977959
Vues:
34
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform