Originally posted by Correy
right, so if i put in my coding.. form1.Show(); your saying it will show, am i correct?
---------- Post added at 10:21 PM ---------- Previous post was at 10:16 PM ----------
and what are you trying to implement?
Your method of using ShowDialog() works just fine. You stated earlier that Show() does not work, Show(), the method itself, does work, it does indeed show a form, however it may need to be used in a slightly different way than ShowDialog(). I further pointed out that ShowDialog() is meant for dialogs (hence the name) as opposed to running two forms at once. If your form is to be used as a dialog, then you should use ShowDialog(), otherwise, use Show(). This is because ShowDialog() will only allow the user to manipulate the second form that was just opened, and not the first form, whereas Show() will allow you to manipulate both forms at once. If the question was "How do I open a form as a dialog?" or "How do I open a dialog?" your response (ShowDialog()) would be correct, however, if the question is "How do I open another form?" (and that was indeed a correct paraphrasing of the question) then one should recommend Show() because its technically more correct, and will allow for more sophistication overall than ShowDialog().
That's all I'm trying to say, and that's all I've been trying to say. ShowDialog() and Show() are slightly different, but both work, and both can open a form. The semantics by which they are used is really irrelevant to the overall solution.
And don't hate on bananaman, I'm sure he's not trying to "implement" anything.
edit:
BAdmaNgLiTcHa was correct in his very first reply:
Originally posted by BAdmaNgLiTcHa
Here.
Form name = new Form();
name.Show();
"name" is the name given to the object of the form.