By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,166 Members | 1,575 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,166 IT Pros & Developers. It's quick & easy.

Eschewing the Form Designer

P: n/a
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.
Feb 10 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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
Feb 10 '06 #2

P: n/a
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
Feb 10 '06 #3

P: n/a
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?

Feb 10 '06 #4

P: n/a
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
"The Confessor" <in*****@reply.to.group> wrote in message
news:Xn*********************************@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.

Feb 10 '06 #5

P: n/a
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:
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?

Feb 11 '06 #6

P: n/a
"Chris Dunaway" <du******@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
Feb 11 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.