K
K
KamAKAM2020-05-25 08:03:29
C++ / C#
KamAKAM, 2020-05-25 08:03:29

Can't open a new window in my project (winforms, C#)?

I have a main form, a button on it, when pressed, a second window opens, this window also has a button, and when I click on this button, a new window SHOULD also open, but for some reason this does not happen. More precisely, the window seems to open, but it is very clumsy and it cannot be opened, and the rest of the windows after that cannot be closed at all. having to click on the taskbar in VS and that's the only way to close windows. can you tell me what could be causing this? maybe a typical Form2 f = new Form2(); f.ShowDialog(); does not work anymore and you need to enter something else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-05-25
@KamAKAM

f.ShowDialog()
Opens a modal dialog
f.Show()
Opens a form.
And it's not a bug

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question