Unenabling forms

phreaky

Regular
Joined
Dec 7, 2002
Messages
71
Location
Caracas, Venezuela
How do I Unenable an active form?, I mean, there's a Form (Form1) active and when I open another Form(Form2) by an event I want to keep Form1 showed but unclickeable until Form2 has dissapeared.
 
Try this:
Visual Basic:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim frm As New Form2()

    frm.ShowDialog(Me)
End Sub

Orbity
 
working with parent and child forms

I've got the same problem, but I work with a parent form and then will the given solution not the right one for my application. Can someone give me a solution for this problem.

greetzz
 
It's not necessary but I would like to do it with child and parentforms.

There must be a way to do this but I don't know how.

I have found already a method to get it enabled but this is not the correct solution, because this method only works occacionally.
 
Back
Top