|
-
Jun 30th, 2004, 04:28 AM
#1
Thread Starter
Lively Member
Help
How to detect is the form is open or not ?????
-
Jun 30th, 2004, 04:39 AM
#2
Why don't you alter your derived class so that it provides a public boolean, that will tell you if its open or not.
I don't live here any more.
-
Jun 30th, 2004, 05:57 AM
#3
Hyperactive Member
how are you opening your form?
-
Jun 30th, 2004, 07:15 AM
#4
Hyperactive Member
If , for example, FP is the form you want to check and IF I undertood well what you need, perhaps it could be useful for you (I tested it for 5 seconds, only!!!):
VB Code:
Private Sub BtnTestaFP_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTestaFP.Click
If FP Is Nothing Then
MessageBox.Show("E' chiuso!")
Else
If FP.CanSelect Then
MessageBox.Show("E' aperto!")
Else
MessageBox.Show("E' chiuso!")
End If
End If
End Sub
Good job
Live long and prosper (Mr. Spock)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|