Using multiple forms

Well, I am creating a program in which I need a separate window to show the log.

I was able to show a different shape using

form1.ShowDialog();

      

But unfortunately this brings focus to the shown form and the user cannot click on the previous form until they close it.

Question: How can I use two separate forms at the same time (one for the main ui and one for the registrar).

+3


source to share


1 answer


Instead ShowDialog()

you would use form1.Show()

.

The method is ShowDialog

designed to display the form as a modal dialog that (by design) locks the original form until it is form1

closed.



The method Show

, on the other hand, simply opens a new form like a normal window.

+5


source







All Articles