how to open a form in C#

  • Thread starter Thread starter kk
  • Start date Start date
K

kk

like we open a form in vb.net by writng code formname.show()
what is the code for c#.net for his
 
You need to create an instance of the form first.

FormName frm = new FormName();
frm.Show();
 
Hello S,

You need to in VB as well. Any of you bastards I catch using the abomination
that is present in VB 2005, I'll personally come to your place of employment
and piss on your shoes.

-Boo
 
Hey if MS has no problems with it, who am I to tell people not to do it that
way. At least he/she is learning C#, so that's a good sign.

j/k of course! :)
 
GhostInAK said:
You need to in VB as well. Any of you bastards I catch using the
abomination that is present in VB 2005, I'll personally come to your place
of employment and piss on your shoes.

Hm, I am using 'My.Forms' whereever it makes sense.
 
Hello Herfried K. Wagner [MVP],

My.Forms is not the abomination. The shortcut for instantiating a "default"
instance of a form is the abomination.
Your shoes are safe for now.

-Boo
 
Back
Top