Click here to Skip to main content
15,900,532 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSelecting Data From Datagrid On Mouse Click Pin
mayhem_rules17-Jan-06 18:41
mayhem_rules17-Jan-06 18:41 
AnswerRe: Selecting Data From Datagrid On Mouse Click Pin
mayhem_rules18-Jan-06 0:58
mayhem_rules18-Jan-06 0:58 
Questiongram..MAPI control Pin
Paritos17-Jan-06 18:40
Paritos17-Jan-06 18:40 
AnswerRe: gram..MAPI control Pin
Dave Kreskowiak18-Jan-06 3:53
mveDave Kreskowiak18-Jan-06 3:53 
QuestionmciSendString Pin
hmklakmal17-Jan-06 18:26
hmklakmal17-Jan-06 18:26 
QuestionRC4 Pin
Aldi_n417-Jan-06 18:00
Aldi_n417-Jan-06 18:00 
QuestionPublic Variable Pin
shiroamachi17-Jan-06 16:36
shiroamachi17-Jan-06 16:36 
AnswerRe: Public Variable Pin
Joshua Quick17-Jan-06 16:51
Joshua Quick17-Jan-06 16:51 
You can still setup Modules in VB.NET, but I don't recommend it since it'll pollute your namespace with all public members and methods.

A better way to do it would be to create a Global class containing Shared (static in C#) member variables.
Public Class Globals
   Public Shared UserID As Integer

   ' Shared constructor. Initializes shared member variables.
   Shared Sub New()
      UserID = -1
   End Sub
End Class

You can now access your global variables like this...
Dim id As Integer = Globals.UserID

AnswerRe: Public Variable Pin
shiroamachi17-Jan-06 17:10
shiroamachi17-Jan-06 17:10 
QuestionNeed help Flexgrid in VB.NET Pin
welbert17-Jan-06 15:38
welbert17-Jan-06 15:38 
AnswerRe: Need help Flexgrid in VB.NET Pin
Christian Graus17-Jan-06 16:20
protectorChristian Graus17-Jan-06 16:20 
GeneralRe: Need help Flexgrid in VB.NET Pin
welbert17-Jan-06 16:31
welbert17-Jan-06 16:31 
GeneralRe: Need help Flexgrid in VB.NET Pin
Christian Graus17-Jan-06 16:33
protectorChristian Graus17-Jan-06 16:33 
Questionscroll bars (vertical and horizontal) in listbox Pin
Joy Anne17-Jan-06 15:00
Joy Anne17-Jan-06 15:00 
AnswerRe: scroll bars (vertical and horizontal) in listbox Pin
Christian Graus17-Jan-06 15:36
protectorChristian Graus17-Jan-06 15:36 
AnswerRe: scroll bars (vertical and horizontal) in listbox Pin
Joshua Quick17-Jan-06 16:12
Joshua Quick17-Jan-06 16:12 
Questionbetween two forms Pin
militiaware17-Jan-06 14:28
militiaware17-Jan-06 14:28 
AnswerRe: between two forms Pin
Christian Graus17-Jan-06 14:33
protectorChristian Graus17-Jan-06 14:33 
QuestionInstaller selected directory. Pin
bskirkman17-Jan-06 13:04
bskirkman17-Jan-06 13:04 
AnswerRe: Installer selected directory. Pin
bskirkman17-Jan-06 14:46
bskirkman17-Jan-06 14:46 
QuestionVBA - Declare - Finding the Lib File - Windows Registry? Pin
JSadleir17-Jan-06 12:09
JSadleir17-Jan-06 12:09 
AnswerRe: VBA - Declare - Finding the Lib File - Windows Registry? Pin
Dave Kreskowiak17-Jan-06 13:58
mveDave Kreskowiak17-Jan-06 13:58 
GeneralRe: VBA - Declare - Finding the Lib File - Windows Registry? Pin
JSadleir17-Jan-06 17:00
JSadleir17-Jan-06 17:00 
GeneralRe: VBA - Declare - Finding the Lib File - Windows Registry? Pin
Dave Kreskowiak19-Jan-06 9:30
mveDave Kreskowiak19-Jan-06 9:30 
Questionhelp with arrays Pin
jszpila17-Jan-06 11:45
jszpila17-Jan-06 11:45 

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.