How to disable the main form when another one was opened

Asked

Viewed 29 times

-1

Disable the main form when another one was opened without closing it so you can use the second form that was opened but not click on the main form

2 answers

0

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Openlistaclientes.Click
    Form_ShowDialog()

End Sub
  • This is called Multiple-Document Interface (MDI) is a technology that the .net bequeathed of Delphi and serves to create "modal" windows that are commonly called "dialog"

-1

Try this.

NomeDoForm.ShowDialog()
  • I had mistaken the place that I put it but I already knew how I was obliged

  • 1

    user111359, when posting an answer, even if it is correct, explain the reason in detail. Thus, doubt is resolved correctly, in addition avoids comments "But because this way ?"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.