How to loop though open forms

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

Hi

I have an application that opens a new form displaying an alert for every
new alert the system receives. The code is running on a timer in a separate
thread and all the alert forms are opened using the following code:

dim nAlert as frmAlert
nAlert.Text = "Alert " & AlertID
nAlert.Show()

When the timer runs again I need to check that the alert form is not already
displayed so as not to display the same alert form twice.

So I need a way of looping through all the open forms and checking the
forms.text property. Can anybody help me with this?

Many thanks in advance, Peter
 
Back
Top