Click here to Skip to main content
16,006,378 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Please hlep: how to create a Help file in VB project? Pin
Jeremy Falcon26-Jun-02 5:05
professionalJeremy Falcon26-Jun-02 5:05 
GeneralEscape sequences Pin
Hans Ruck25-Jun-02 6:40
Hans Ruck25-Jun-02 6:40 
GeneralRe: Escape sequences Pin
Wictor Wilén25-Jun-02 7:00
Wictor Wilén25-Jun-02 7:00 
GeneralRe: Escape sequences Pin
Jeremy Falcon25-Jun-02 7:00
professionalJeremy Falcon25-Jun-02 7:00 
GeneralKeeping track of a form Pin
24-Jun-02 7:16
suss24-Jun-02 7:16 
GeneralRe: Keeping track of a form Pin
Andy Smith24-Jun-02 9:02
Andy Smith24-Jun-02 9:02 
GeneralRe: Keeping track of a form Pin
Tantalus25-Jun-02 8:51
Tantalus25-Jun-02 8:51 
GeneralRe: Keeping track of a form Pin
Andy Smith25-Jun-02 17:31
Andy Smith25-Jun-02 17:31 
the following is similar to how the vb6 upgrade wizard does it. it's not a true singleton pattern, because it allows for more than one to be created over the lifetime of the app, but is close enough in that it never allows more than one at a time.
add this code to your form, substituting "Form1" for the type of your form.

Private Shared m_SingleInstance As Form1
Private Shared m_InitializingSingleInstance As Boolean
Public Shared Property SingleInstance() As Form1
Get
If m_SingleInstance Is Nothing OrElse m_SingleInstance.IsDisposed Then
m_InitializingSingleInstance = True
m_SingleInstance = New Form1()
m_InitializingSingleInstance = False
End If
SingleInstance= m_SingleInstance
End Get
End Property

now when you want to create or reference your one form, use Form1.SingleInstance instead of creating or showing it manually.

GeneralRe: Keeping track of a form Pin
jkgh26-Jun-02 5:00
jkgh26-Jun-02 5:00 
GeneralRe: Keeping track of a form Pin
#realJSOP1-Jul-02 7:53
professional#realJSOP1-Jul-02 7:53 
GeneralChanging the picture in a picture box at runtime Pin
Tantalus_24-Jun-02 6:53
Tantalus_24-Jun-02 6:53 
GeneralRe: Changing the picture in a picture box at runtime Pin
24-Jun-02 6:54
suss24-Jun-02 6:54 
GeneralRe: Changing the picture in a picture box at runtime Pin
Jeremy Falcon27-Jun-02 7:58
professionalJeremy Falcon27-Jun-02 7:58 
Generaldrag and drop functionality Pin
Charlie Cullen24-Jun-02 6:36
Charlie Cullen24-Jun-02 6:36 
GeneralActiveX DLLs and Stardard EXEs Pin
Schalk23-Jun-02 23:04
Schalk23-Jun-02 23:04 
Questionhow to handle dtmf tones in MS TAPI Pin
rita21-Jun-02 9:30
rita21-Jun-02 9:30 
AnswerTAPI Playback Pin
Harihara Subramanian25-Sep-02 2:33
Harihara Subramanian25-Sep-02 2:33 
Questionhow to distribute a application?Any good tool? Pin
Zell21-Jun-02 4:04
Zell21-Jun-02 4:04 
AnswerRe: how to distribute a application?Any good tool? Pin
Chris Rickard21-Jun-02 4:38
Chris Rickard21-Jun-02 4:38 
AnswerRe: how to distribute a application?Any good tool? Pin
SHaroz21-Jun-02 7:52
SHaroz21-Jun-02 7:52 
AnswerRe: how to distribute a application?Any good tool? Pin
Zell21-Jun-02 15:07
Zell21-Jun-02 15:07 
GeneralVBA to get data by clicking on Excel chart Pin
Eric Jacobsen20-Jun-02 12:40
Eric Jacobsen20-Jun-02 12:40 
GeneralRe: VBA to get data by clicking on Excel chart Pin
Eric Jacobsen20-Jun-02 13:33
Eric Jacobsen20-Jun-02 13:33 
GeneralC# Outlook bar control Pin
Ray Cassick20-Jun-02 6:46
Ray Cassick20-Jun-02 6:46 
GeneralRe: C# Outlook bar control Pin
Nick Parker25-Jun-02 17:26
protectorNick Parker25-Jun-02 17:26 

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.