Results 1 to 4 of 4

Thread: Help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2004
    Posts
    108

    Unhappy Help

    How to detect is the form is open or not ?????

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    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.

  3. #3
    Hyperactive Member CyberHawke's Avatar
    Join Date
    May 2004
    Location
    Washington DC
    Posts
    477
    how are you opening your form?

  4. #4
    Hyperactive Member
    Join Date
    Mar 2004
    Location
    Prato - Tuscany - Italy
    Posts
    461
    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:
    1. Private Sub BtnTestaFP_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnTestaFP.Click
    2.         If FP Is Nothing Then
    3.             MessageBox.Show("E' chiuso!")
    4.         Else
    5.             If FP.CanSelect Then
    6.                 MessageBox.Show("E' aperto!")
    7.             Else
    8.                 MessageBox.Show("E' chiuso!")
    9.             End If
    10.         End If
    11.     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
  •  



Click Here to Expand Forum to Full Width