Eschewing the Form Designer

  • Thread starter Thread starter The Confessor
  • Start date Start date
T

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.
 
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
 
The said:
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
 
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?
 
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. ;-)
 
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
 
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
 
Back
Top