|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Making a variable available to all forms..Hi all,
How do i make a variable that i can call in all my forms? I want to get a value when the user logs in, and carry that value throughout all the forms for queries etc. Thanks in advance.. Add a New Module to your project and add a friend property like this:
Private m_MyVariable As Object Friend Property MyVariable() As Object Get Return m_MyVariable End Get Set(ByVal value As Object) m_MyVariable = value End Set End Property Show quoteHide quote "rj" wrote: > Hi all, > > How do i make a variable that i can call in all my forms? > I want to get a value when the user logs in, and carry that value > throughout all the forms for queries etc. > > Thanks in advance.. > >
Unique Machine Identifier
Web browser control in VB 2003 keep program running Have you upgraded to VS 2005? MDI Child Windows Overlapped by control on Parent Joining files closing a form for mobile application Exception when closing Word document Com interfaces build in DotNet? How to force DataGridView to requery? |
|||||||||||||||||||||||