Click here to Skip to main content
15,885,365 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionClipboard hook chain guide [modified] Pin
Alermo13-Jun-08 22:35
Alermo13-Jun-08 22:35 
QuestionCrystal Report Error Pin
monika_vasvani13-Jun-08 21:01
monika_vasvani13-Jun-08 21:01 
Questionanybody can give website or book name to learn crystal report and crystal report formulas Pin
sathyan_829413-Jun-08 20:10
sathyan_829413-Jun-08 20:10 
AnswerRe: anybody can give website or book name to learn crystal report and crystal report formulas Pin
~Khatri Mitesh~13-Jun-08 22:37
~Khatri Mitesh~13-Jun-08 22:37 
QuestionValidating form fields in VB.NET Pin
AAGTHosting13-Jun-08 7:19
AAGTHosting13-Jun-08 7:19 
AnswerRe: Validating form fields in VB.NET Pin
BDEz (Member 3919223)13-Jun-08 7:32
BDEz (Member 3919223)13-Jun-08 7:32 
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 
I have a windows application where a form opens another form, as showe din the code below:

Public Class frmForm1

dim frmMyForm2 as frmForm2

public sub OpenForm2

If frmMyForm2 Is Nothing Then
frmMyForm2 = New frmForm2()
frmMyForm2.MdiParent = Me.ParentForm
frmMyForm2.Show()
Else
frmMyForm2.BringToFront()
End If

end sub

end class

As you can see, if form2 is nothing then a new instance is created and displayed, else it is bought to the front.

Problem arises when I close form2 and then try to re-open it from form1. Although the form is closed it still isn't equal to nothing, therefore, else clause is executed which obviously isn't any good.

Any ideas?
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 
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 

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.