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
 

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