Home All Groups Group Topic Archive Search About

how to open a form in C#

Author
7 Sep 2006 7:06 PM
kk
like we open a form in vb.net by writng code formname.show()
what is the code for c#.net for his

Author
7 Sep 2006 7:24 PM
S Kachru
You need to create an instance of the form first.

                FormName frm = new FormName();
                frm.Show();


Show quoteHide quote
> like we open a form in vb.net by writng code formname.show() what is
> the code for c#.net for his
>
Author
8 Sep 2006 4:10 AM
GhostInAK
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

Show quoteHide quote
> You need to create an instance of the form first.
>
> FormName frm = new FormName();
> frm.Show();
>> like we open a form in vb.net by writng code formname.show() what is
>> the code for c#.net for his
>>
Author
8 Sep 2006 1:36 PM
S Kachru
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! :)




Show quoteHide quote
> 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
>
>> You need to create an instance of the form first.
>>
>> FormName frm = new FormName();
>> frm.Show();
>>> like we open a form in vb.net by writng code formname.show() what is
>>> the code for c#.net for his
>>>
Author
8 Sep 2006 1:47 PM
Herfried K. Wagner [MVP]
"GhostInAK" <ghosti***@gmail.com> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
9 Sep 2006 5:36 AM
GhostInAK
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

Show quoteHide quote
> "GhostInAK" <ghosti***@gmail.com> schrieb:
>
>> 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.
>