1 Reply Latest reply on Jun 20, 2014 7:38 AM by Simon Turner

    Know if a Form is open in my VB.Net addin

    roberto gennari

      Hallo,

      I would like to know if a Form of my VB.Net addin is already open.

       

      Is it true use OpenForms to get what I need?

                      For Each F As Form In My.Application.OpenForms

                          If TypeOf (F) Is Form2 Then

                              F.WindowState = FormWindowState.Normal

                              F.BringToFront()

                          End If

                      Next

       

      My problem is in My.Application becouse it's wrong,  has anyone ever had the same problem?

      With what should I replace it?

       

      Thanks.

      Roberto