Hi I have 2 forms and I want to do this.
If form1 (is open/loaded) Then
form2.enabled = false
end if
I don't know how to write in VB that from1 is open or something.
I think that I wrote everything clearly.
Printable View
Hi I have 2 forms and I want to do this.
If form1 (is open/loaded) Then
form2.enabled = false
end if
I don't know how to write in VB that from1 is open or something.
I think that I wrote everything clearly.
Where exactly would this code be located and under what circumstances would it be executed?
When Form1 is open and the value of progressbar will be 98, then Form2 shows. I want that If Form2 is open, you can't close Form1 and If you close Form2 you can close Form1 too.
Then show Form2 as a dialog (Form2.ShowDialog). No other part of the application will then be accessible until Form2 closes.
Oh man this is exactly what I was looking for. Thanks a lot for really quick response. It was so simple, now I feel like a fool. :)