Click here to Skip to main content
15,891,136 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to save images into SQL database using ASP.net under VB instead of C# Pin
anting17-Jun-08 22:59
anting17-Jun-08 22:59 
AnswerRe: How to save images into SQL database using ASP.net under VB instead of C# Pin
Smithers-Jones17-Jun-08 23:04
Smithers-Jones17-Jun-08 23:04 
Questionreading logfile Pin
Ebube17-Jun-08 21:21
Ebube17-Jun-08 21:21 
AnswerRe: reading logfile Pin
Noctris18-Jun-08 0:14
Noctris18-Jun-08 0:14 
GeneralRe: reading logfile Pin
Ebube18-Jun-08 4:35
Ebube18-Jun-08 4:35 
GeneralRe: reading logfile Pin
Noctris18-Jun-08 6:02
Noctris18-Jun-08 6:02 
AnswerRe: reading logfile Pin
Hasan Jaffal18-Jun-08 20:05
Hasan Jaffal18-Jun-08 20:05 
QuestionAsking about global variable using VB.NET Window Form Application Pin
drexler_kk17-Jun-08 21:01
drexler_kk17-Jun-08 21:01 
I'm new to VB.NET, currently I'm learning programming here. I have a Window Form(e.g. FrmLogin.vb) and a module which used to run the program (e.g. Module1.vb).

I have declared a few public string variable as follow:
Option Explicit On 
Imports System.Data
Imports System.Data.Odbc
Imports System.Configuration

Module Module1
    'User detail variable
    Public UserID As String                                                  
    Public UserName As String                                             
    Public UserPassword As String  
End Module


And I used the FrmLogin to verify the user by connecting to MySQL database. After the user successful login,I will set the UserID,UserName and UserPassword data load from the database which need to be used in my program for the future identification. But when I open another new form I found that these public variable is no value. Can anyone tell me how should I share a public variable inside VB.NET? This data will be used by alot of Form inside this application.

Thank you for reading.
Regards
Drexler
AnswerRe: Asking about global variable using VB.NET Window Form Application Pin
Ashfield17-Jun-08 21:20
Ashfield17-Jun-08 21:20 
GeneralRe: Asking about global variable using VB.NET Window Form Application Pin
drexler_kk17-Jun-08 22:11
drexler_kk17-Jun-08 22:11 
AnswerRe: Asking about global variable using VB.NET Window Form Application Pin
Guffa17-Jun-08 21:34
Guffa17-Jun-08 21:34 
QuestionRe: Asking about global variable using VB.NET Window Form Application Pin
drexler_kk17-Jun-08 22:06
drexler_kk17-Jun-08 22:06 
AnswerRe: Asking about global variable using VB.NET Window Form Application Pin
Guffa17-Jun-08 22:21
Guffa17-Jun-08 22:21 
QuestionRe: Asking about global variable using VB.NET Window Form Application Pin
drexler_kk17-Jun-08 22:44
drexler_kk17-Jun-08 22:44 
AnswerRe: Asking about global variable using VB.NET Window Form Application Pin
Jay Royall18-Jun-08 1:34
Jay Royall18-Jun-08 1:34 
GeneralRe: Asking about global variable using VB.NET Window Form Application Pin
drexler_kk18-Jun-08 15:12
drexler_kk18-Jun-08 15:12 
GeneralRe: Asking about global variable using VB.NET Window Form Application Pin
drexler_kk18-Jun-08 15:15
drexler_kk18-Jun-08 15:15 
GeneralRe: Asking about global variable using VB.NET Window Form Application Pin
Guffa18-Jun-08 23:32
Guffa18-Jun-08 23:32 
Questiondebugging problem Pin
maytel mynt17-Jun-08 19:28
maytel mynt17-Jun-08 19:28 
AnswerRe: debugging problem Pin
Rupesh Kumar Swami17-Jun-08 21:48
Rupesh Kumar Swami17-Jun-08 21:48 
GeneralRe: debugging problem Pin
maytel mynt17-Jun-08 22:34
maytel mynt17-Jun-08 22:34 
Question(Rs232) how to receiver the correct value and sort in textbox Pin
kain77717-Jun-08 17:56
kain77717-Jun-08 17:56 
QuestionMutiple instance in app.config Pin
Subjugate17-Jun-08 15:41
Subjugate17-Jun-08 15:41 
QuestionSetting Focus inside a text box Pin
New_Coder17-Jun-08 15:25
New_Coder17-Jun-08 15:25 
AnswerRe: Setting Focus inside a text box Pin
jzonthemtn17-Jun-08 15:38
jzonthemtn17-Jun-08 15:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.