What's the difference between new Show(), ShowDialog() and Application.Run() functions?
In main
(winforms) I saw :
Application.Run(new Form1());
Then, for Form1, I also saw Form1.Show()
with description: "Shows the control to the user."
For ShowDialog, it said "Shows the form as a modal dialog box".
What does this mean?
What are each of their uses and which is most common?
Show
andShowDialog
is thatShow
is non-modal andShowDialog
is non-modal, and this is the top result.