Click here to Skip to main content
15,867,771 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Validating form fields in VB.NET Pin
parth.p13-Jun-08 12:14
parth.p13-Jun-08 12:14 
QuestionClosing a form Pin
Jay Royall13-Jun-08 5:08
Jay Royall13-Jun-08 5:08 
AnswerRe: Closing a form Pin
Ashfield13-Jun-08 5:18
Ashfield13-Jun-08 5:18 
GeneralRe: Closing a form Pin
Jay Royall13-Jun-08 5:37
Jay Royall13-Jun-08 5:37 
GeneralRe: Closing a form Pin
Luc Pattyn13-Jun-08 6:01
sitebuilderLuc Pattyn13-Jun-08 6:01 
GeneralRe: Closing a form Pin
Jay Royall13-Jun-08 6:09
Jay Royall13-Jun-08 6:09 
GeneralRe: Closing a form Pin
Luc Pattyn13-Jun-08 6:20
sitebuilderLuc Pattyn13-Jun-08 6:20 
GeneralRe: Closing a form Pin
BDEz (Member 3919223)13-Jun-08 6:01
BDEz (Member 3919223)13-Jun-08 6:01 
Lets say that you have a form called Form1 and you want to check to see if it is open first so you dont have multiple instances of the form running around on your end user's desktop.
First we make a Class statement and define your Form1 as FormNumberOne with events:

Dim WithEvents FormNumberOne As Form = Form1

Then under an action like a menu item click or something we drop this if statement:

If FormNumberOne Is Nothing OrElse FormNumberOne.IsDisposed Then
Dim FormNumberOne As New Form
FormNumberOne = Form1
FormNumberOne.Show()
ElseIf FormNumberOne.Visible = False Then
FormNumberOne.Show()
Else
MsgBox("You already have the form number one open")
End If

Give this a try, should be what you are looking for...
QuestionReturning a single recordset of data from two related tables in a Dataset Pin
Steven J Jowett13-Jun-08 4:38
Steven J Jowett13-Jun-08 4:38 
AnswerRe: Returning a single recordset of data from two related tables in a Dataset Pin
Ashfield13-Jun-08 4:57
Ashfield13-Jun-08 4:57 
QuestionRe: Returning a single recordset of data from two related tables in a Dataset Pin
Steven J Jowett13-Jun-08 5:09
Steven J Jowett13-Jun-08 5:09 
AnswerRe: Returning a single recordset of data from two related tables in a Dataset Pin
Ashfield13-Jun-08 5:29
Ashfield13-Jun-08 5:29 
AnswerRe: Returning a single recordset of data from two related tables in a Dataset Pin
BDEz (Member 3919223)13-Jun-08 5:49
BDEz (Member 3919223)13-Jun-08 5:49 
GeneralRe: Returning a single recordset of data from two related tables in a Dataset Pin
Ashfield13-Jun-08 6:22
Ashfield13-Jun-08 6:22 
GeneralRe: Returning a single recordset of data from two related tables in a Dataset Pin
Steven J Jowett13-Jun-08 6:30
Steven J Jowett13-Jun-08 6:30 
GeneralRe: Returning a single recordset of data from two related tables in a Dataset Pin
BDEz (Member 3919223)13-Jun-08 6:43
BDEz (Member 3919223)13-Jun-08 6:43 
GeneralRe: Returning a single recordset of data from two related tables in a Dataset Pin
Ashfield13-Jun-08 6:46
Ashfield13-Jun-08 6:46 
GeneralRe: Returning a single recordset of data from two related tables in a Dataset Pin
BDEz (Member 3919223)13-Jun-08 7:16
BDEz (Member 3919223)13-Jun-08 7:16 
GeneralRe: Returning a single recordset of data from two related tables in a Dataset Pin
Ashfield13-Jun-08 6:48
Ashfield13-Jun-08 6:48 
GeneralRe: Returning a single recordset of data from two related tables in a Dataset Pin
Steven J Jowett13-Jun-08 7:10
Steven J Jowett13-Jun-08 7:10 
GeneralRe: Returning a single recordset of data from two related tables in a Dataset Pin
BDEz (Member 3919223)13-Jun-08 7:22
BDEz (Member 3919223)13-Jun-08 7:22 
QuestionOdbcConnection.Close needs about 2 sec. How to solve? Pin
mp000113-Jun-08 3:39
mp000113-Jun-08 3:39 
AnswerRe: OdbcConnection.Close needs about 2 sec. How to solve? Pin
Ashfield13-Jun-08 3:58
Ashfield13-Jun-08 3:58 
GeneralRe: OdbcConnection.Close needs about 2 sec. How to solve? Pin
mp000116-Jun-08 23:52
mp000116-Jun-08 23:52 
Questionproblem with window service Pin
Ebube13-Jun-08 2:59
Ebube13-Jun-08 2:59 

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.