By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

how to detect a running form

P: n/a
Hi,

I would like to know how can i detect if a particular form is not already running ?
i have a MDI application and some MID child..but i do not want to have 100 MDI child of the same form, so i need to control it.
please, let me know how to detect is form FSLA is already running or not.

thanks,
Maileen
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Maileen,
You can do this by dectecting the childform's text value from the parent
form

Private Sub IsFormOpen(ByVal formtext As String) As Boolean
Dim isopen As Boolean = False
Dim i As Integer
Dim myKids As Form()
myKids = Me.MDIChildren
For i = 0 To myKids.Length - 1
If myKid(i).Text = formtext Then
isopen = True
Exit For
End If
Next
Return isopen
End Sub

"Maileen" <no*****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

I would like to know how can i detect if a particular form is not already
running ?
i have a MDI application and some MID child..but i do not want to have
100 MDI child of the same form, so i need to control it.
please, let me know how to detect is form FSLA is already running or not.

thanks,
Maileen

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.