hi, can u h help me, i have different forms and from form1 another form2 will show and the form1 will become inactive to use and become blurred, and when the form2 closed or hide the form1 will become active again.

can i add an animated pictures to a form? thanks

Recommended Answers

All 2 Replies

show the second form and disable the first form like this:

    Dim newform As Form3 = New Form3
    Me.Enabled = False

Use the the Closed event to re-enable the first form when the second form closes:

Private Sub Form3_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
    Form1.Enabled = True
End Sub
commented: You're a buzy person +14

You can also use
If the animated picture is a GIF then all you have to do is put it in a picturebox and use
Picturebox1.Endabled = TRUE

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.