Derived from Form, how to make VS08 open in Editor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    Derived from Form, how to make VS08 open in Editor

    So I've created my own class SmartForm, derived from Form...
    public partial class SmartForm : Form

    It contains methods for things like remembering position, fading in or out, logging and so on. If I open the original SmartForm Visual Studio knows to open it in the right Forms Designer and I can add controls at design time.

    But, if I create a new form, and change it so it is derived from SmartForm...
    public partial class PicFrame : SmartForm
    Then Visual Studio doesn't know what to do with it. I can work around this by manually changing the :SmartForm to :Form for doing design work, then back again, but that's a pain after a while.

    Does anyone know how I can tell Visual Studio that a SmartForm is to be openned with the Forms Designer?

    -Clint
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I am not entirely sure this is possible. Can't recall as ever seeing in done. Maybe there is some kind of [ ] proeprty-element that can be applied to the class?

    Aside from a bit of annoyance at having to keep changing it back and forth. Is there really anything pivital you need in the designer view that would come from the SmartForm class?

    Comment

    Working...