Eschewing the Form Designer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • The Confessor

    Eschewing the Form Designer

    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.
  • Cor Ligthert [MVP]

    #2
    Re: Eschewing the Form Designer

    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


    Comment

    • Chris

      #3
      Re: Eschewing the Form Designer

      The Confessor wrote:[color=blue]
      > 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.[/color]

      You can code it all yourself, the designer will still try and open, but
      just right click the file and choose view code.
      Chris

      Comment

      • Chris Dunaway

        #4
        Re: Eschewing the Form Designer

        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?

        Comment

        • CMM

          #5
          Re: Eschewing the Form Designer

          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

          "The Confessor" <invalid@reply. to.group> wrote in message
          news:Xns9765DBE 326DBCinvalidre plytogroup@130. 81.64.196...[color=blue]
          > 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.[/color]


          Comment

          • R. MacDonald

            #6
            Re: Eschewing the Form Designer

            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:
            [color=blue]
            > 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?
            >[/color]

            Comment

            • The Confessor

              #7
              Re: Eschewing the Form Designer

              "Chris Dunaway" <dunawayc@gmail .com> wrote in news:1139582135 .197428.165800
              @g14g2000cwa.go oglegroups.com:
              [color=blue]
              > 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?
              >[/color]

              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

              Comment

              Working...