Home All Groups Group Topic Archive Search About

Disabling the Form Designer

Author
25 Jul 2006 11:50 PM
TC
I don't use the Form Designer. Is there any way to disable it
completely? I find it annoying that every time I create a new form, or
double-click on an existing one, Visual Studio uses the Designer by
default. It would be nice if I could turn that off.

-TC

Author
26 Jul 2006 4:22 AM
Cor Ligthert [MVP]
TC,

Just open a class instead of a form

Cor

Show quoteHide quote
"TC" <golemdan***@yahoo.com> schreef in bericht
news:1153871407.623543.301730@i42g2000cwa.googlegroups.com...
>I don't use the Form Designer. Is there any way to disable it
> completely? I find it annoying that every time I create a new form, or
> double-click on an existing one, Visual Studio uses the Designer by
> default. It would be nice if I could turn that off.
>
> -TC
>
Author
26 Jul 2006 12:59 PM
Michel Posseth [MCP]
> I don't use the Form Designer. Is there any way to disable it

well you could just create a standard class

Public Class ClsMyCodeform
'but as soon as you place this line  it is again a form
Inherits System.Windows.Forms.Form

End Class

so you could first create a class , write all your code and as soon as you
are ready to write the interface  ( i guess you do that from code ?? )  put
the inherist statement on top to make it a form again


regards

Michel Posseth 




Show quoteHide quote
"TC" wrote:

> I don't use the Form Designer. Is there any way to disable it
> completely? I find it annoying that every time I create a new form, or
> double-click on an existing one, Visual Studio uses the Designer by
> default. It would be nice if I could turn that off.
>
> -TC
>
>
Author
27 Jul 2006 2:07 PM
Chris Dunaway
TC wrote:
> I don't use the Form Designer. Is there any way to disable it

You design and position all your control manually?  Even though the
form designer makes it very easy?

> completely? I find it annoying that every time I create a new form, or
> double-click on an existing one, Visual Studio uses the Designer by

Right click on one of your forms and choose Open With.  Then select the
code editor and click the set as default button.

>From there on out, double clicking on a form will bring up the code
window instead of the designer.  You can still right click on the code
window and choose Show Designer if you decide to use the designer.
Author
27 Jul 2006 7:23 PM
TC
Chris,

Thanks! I didn't know about the default Open With option. That's what I
was looking for.

And, yes, I position and size all my controls manually. I've seen too
many mistakes made by careless programmers using Designer. In my
opinion, doing it manually saves time in the long run.

-TC


Chris Dunaway wrote:
Show quoteHide quote
> TC wrote:
> > I don't use the Form Designer. Is there any way to disable it
>
> You design and position all your control manually?  Even though the
> form designer makes it very easy?
>
> > completely? I find it annoying that every time I create a new form, or
> > double-click on an existing one, Visual Studio uses the Designer by
>
> Right click on one of your forms and choose Open With.  Then select the
> code editor and click the set as default button.
>
> >From there on out, double clicking on a form will bring up the code
> window instead of the designer.  You can still right click on the code
> window and choose Show Designer if you decide to use the designer.
Author
27 Jul 2006 8:14 PM
Chris Dunaway
TC wrote:

> And, yes, I position and size all my controls manually. I've seen too
> many mistakes made by careless programmers using Designer. In my
> opinion, doing it manually saves time in the long run.

I *might* agree with you in VS2003 if you had to create a complex form
layout but not in VS2005.  The layout options have been enhanced and it
is very simple to align controls using the designer.  And with the
TableLayoutPanel and the FlowLayoutPanel, there are even more options.

But to each his own.