Home All Groups Group Topic Archive Search About

Eschewing the Form Designer

Author
10 Feb 2006 2:39 AM
The Confessor
I'm pretty heavily into do-it-yourself coding, which makes the Form
Designer more of an annoyance than anything else.

Is there any way to declare

Inherits System.Windows.Forms.Form

at the start of a class without having the environment open the Form
designer whenever I try to open it?

Thanks in advance for any answers.

Author
10 Feb 2006 5:58 AM
Cor Ligthert [MVP]
Hi,

Just open a "class" and start to type.

However it will in my opinion give you not any advantage than by opening a
form and ignore the desisgner part. You would have to write by instance the
disposing part yourself.

Cor
Author
10 Feb 2006 5:59 AM
Chris
The Confessor wrote:
> I'm pretty heavily into do-it-yourself coding, which makes the Form
> Designer more of an annoyance than anything else.
>
> Is there any way to declare
>
> Inherits System.Windows.Forms.Form
>
> at the start of a class without having the environment open the Form
> designer whenever I try to open it?
>
> Thanks in advance for any answers.

You can code it all yourself, the designer will still try and open, but
just right click the file and choose view code.
Chris
Author
10 Feb 2006 2:35 PM
Chris Dunaway
If you right click the file and choose open with, you can set the IDE
to default to opening in code view when you double click the form.
Perhaps that is what you are looking for?
Author
11 Feb 2006 2:06 PM
R. MacDonald
Hello, Chris,

I don't know if that's what "The Confessor" is looking for, but it will
sure help me.  While I very happily use the form designer for initial
layout, most of my work is with the code.  I'm continually double
clicking my forms when I really want to open them in code view.

I've made the change and am very pleased.  Thanks for bringing it to my
attention.  (I guess there are still many corners of the IDE that I
haven't looked in yet.)

Cheers,
Randy


Chris Dunaway wrote:

Show quoteHide quote
> If you right click the file and choose open with, you can set the IDE
> to default to opening in code view when you double click the form.
> Perhaps that is what you are looking for?
>
Author
11 Feb 2006 3:52 PM
The Confessor
"Chris Dunaway" <dunaw***@gmail.com> wrote in news:1139582135.197428.165800
@g14g2000cwa.googlegroups.com:

> If you right click the file and choose open with, you can set the IDE
> to default to opening in code view when you double click the form.
> Perhaps that is what you are looking for?
>

Randy's reply caught my eye and brought my attention to the fact that I
hadn't thanked you for your answer, which turned out to be *exactly* what I
was looking for as well.

Thank you, Chris.

The Confessor
Author
10 Feb 2006 2:43 PM
CMM
Cor's answer was right on point.
Just create an empty class and Inherit from "System.Windows.Forms.Form."
Then, go to work!
Somehow, I would think that if you didn't know that, then you're in no way
ready to take on the task.
He is also right in that it will provide you no benefit. The Forms Designer
is one of the most mature, well thought-out (mostly) and best part of Visual
Studio. This is one area where Microsoft shines. It's like they took the
VB1-6 Windowing engine and gave it all the benefits of MFC without any of
the impediments.

WebForm designer?.... Well, that's a different story IMHO. ;-)

--
-C. Moya
www.cmoya.com
Show quoteHide quote
"The Confessor" <inva***@reply.to.group> wrote in message
news:Xns9765DBE326DBCinvalidreplytogroup@130.81.64.196...
> I'm pretty heavily into do-it-yourself coding, which makes the Form
> Designer more of an annoyance than anything else.
>
> Is there any way to declare
>
> Inherits System.Windows.Forms.Form
>
> at the start of a class without having the environment open the Form
> designer whenever I try to open it?
>
> Thanks in advance for any answers.