3

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

I managed to show another form using

form1.ShowDialog();

But unfortunately this transfers the focus to the shown form and the user is not able to click on the previous form until he\she closes it.

Question : How could i use 2 separate forms at the same time ( one for the main ui, and one for the logger ).

1
  • 3
    .Show() instead of .ShowDialog() Commented Feb 14, 2013 at 18:03

1 Answer 1

5

You would use form1.Show() instead of ShowDialog().

The ShowDialog method is intended to show the form as a modal dialog, which (by design) will block the original form until form1 has been closed.

The Show method, on the other hand, just opens the new form as a normal Window.

Sign up to request clarification or add additional context in comments.

2 Comments

Well you made my day :D. The fastest good answer i ever got, thanks very much bro.
Marked! :D, it was the system that told me i can't mark it before 10 minutes

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.