vb.net form loaded question

  • Thread starter Thread starter Mike McIntyre
  • Start date Start date
Hi

The code below was used in our VB6 apps but will not work in VB.Net
Can any suggest a way of doing this in VB.Net, it will return true if the
form is loaded
Thanks in advance

Function IsFormLoaded(ByVal FormName As String) As Boolean

On Error Resume Next

Dim I As Integer

For I = 0 To Forms.count - 1

If FormName = UCase$(Forms(I).name) Then

IsFormLoaded = True

Exit For

End If

Next I

End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top