I would like to know if a Form of my VB.Net addin is already open.
For Each F As Form In My.Application.OpenForms
If TypeOf (F) Is Form2 Then
F.WindowState = FormWindowState.Normal
My problem is in My.Application becouse it's wrong, has anyone ever had the same problem?
With what should I replace it?
I think it is just Application.OpenForms (no "My." needed)
But I would say that this is the wrong way to go about it. You should keep track of each window that your application is displaying.
Retrieving data ...