Click here to Skip to main content
15,914,111 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Dear all Pin
Dave Kreskowiak22-Dec-06 2:56
mveDave Kreskowiak22-Dec-06 2:56 
AnswerRe: Dear all Pin
Kschuler22-Dec-06 4:52
Kschuler22-Dec-06 4:52 
QuestionDear all Pin
indian14322-Dec-06 2:24
indian14322-Dec-06 2:24 
AnswerRe: Dear all Pin
Dave Kreskowiak22-Dec-06 2:55
mveDave Kreskowiak22-Dec-06 2:55 
AnswerRe: Dear all Pin
Christian Graus22-Dec-06 8:24
protectorChristian Graus22-Dec-06 8:24 
AnswerRe: Storing a name Pin
namrtihdsdsedwde22-Dec-06 2:22
namrtihdsdsedwde22-Dec-06 2:22 
GeneralRe: Storing a name Pin
harveyhanson22-Dec-06 2:23
harveyhanson22-Dec-06 2:23 
GeneralRe: Storing a name Pin
Kschuler22-Dec-06 4:36
Kschuler22-Dec-06 4:36 
In the solution explorer, right click on your project file. Select Add. Then select Module. Name the module and click the Add button. (I usually name my global module modGlobal). The new module will now appear in the solution explorer and you can add public variables, methods, and functions to it to use through out your PC Project. (You will still have to declare variables as Public in order to use them across forms.) The code will look something like this:

Module Module1
    'Public variables can be used by all forms
    Public strMyGlobalVariable As String = String.Empty

    'Private variables can only be used in this module
    Private strMyPrivateVariable As String = String.Empty

    Public Sub MyGlobalMethod()
        'Code for method
    End Sub

    Public Function MyGlobalFunction() As String
        'Code for function
        Return String.Empty
    End Function

End Module

GeneralRe: Storing a name Pin
harveyhanson2-Jan-07 4:33
harveyhanson2-Jan-07 4:33 
QuestionTo hardware details about client machine using Vb6.0 Pin
jamesrajesh21-Dec-06 20:40
jamesrajesh21-Dec-06 20:40 
AnswerRe: To hardware details about client machine using Vb6.0 Pin
Dave Kreskowiak22-Dec-06 3:03
mveDave Kreskowiak22-Dec-06 3:03 
QuestionDear all Pin
indian14321-Dec-06 20:22
indian14321-Dec-06 20:22 
QuestionCode Snippets Pin
The ANZAC21-Dec-06 15:50
The ANZAC21-Dec-06 15:50 
AnswerRe: Code Snippets Pin
Are Jay21-Dec-06 20:33
Are Jay21-Dec-06 20:33 
AnswerRe: Code Snippets Pin
Are Jay21-Dec-06 20:37
Are Jay21-Dec-06 20:37 
AnswerRe: Code Snippets Pin
Kschuler22-Dec-06 4:40
Kschuler22-Dec-06 4:40 
GeneralRe: Code Snippets Pin
Are Jay22-Dec-06 16:38
Are Jay22-Dec-06 16:38 
GeneralRe: Code Snippets Pin
The ANZAC22-Dec-06 19:11
The ANZAC22-Dec-06 19:11 
QuestionselectChangedCommitted in combo box Pin
steve_rm21-Dec-06 14:41
steve_rm21-Dec-06 14:41 
AnswerRe: selectChangedCommitted in combo box Pin
The ANZAC21-Dec-06 15:32
The ANZAC21-Dec-06 15:32 
GeneralRe: selectChangedCommitted in combo box Pin
steve_rm21-Dec-06 16:41
steve_rm21-Dec-06 16:41 
GeneralRe: selectChangedCommitted in combo box Pin
The ANZAC21-Dec-06 23:39
The ANZAC21-Dec-06 23:39 
QuestionExe file bigger than usually Pin
TeachesOfPeaches21-Dec-06 5:52
TeachesOfPeaches21-Dec-06 5:52 
AnswerRe: Exe file bigger than usually Pin
Guffa21-Dec-06 5:56
Guffa21-Dec-06 5:56 
GeneralRe: Exe file bigger than usually Pin
arcticbrew21-Dec-06 11:12
arcticbrew21-Dec-06 11:12 

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.