ControlDesigner for TabControl

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rachel Suddeth

    #1

    ControlDesigner for TabControl

    I would like to write a designer verb for a class I have that inherits from
    TabControl. I figure the only way to do that without breaking the special
    designer stuff that works for TabControl would be to inherit from whatever
    Designer class is currently used for the TabControl. But I can't find out
    what that is. There must be one... I would hope it wouldn't be sealed...
    anyone know what it's called or how to get information about it? Or know of
    another way to go about this?

    -Rachel


  • James Curran

    #2
    Re: ControlDesigner for TabControl

    First, quickly go to http://www.aisto.com/roeder/dotnet/ and download
    the greatest .Net utility ever, Lutz Roeder's Reflector.

    Then run it, and navagate to "System.Windows .Forms.TabContr ol".
    Right-click and choose "Disassembl er". Read the information you desire
    ("System.Window s.Forms.Design. TabControlDesig ner, System.Design,
    Version=1.0.500 0.0") from the new panel.
    --
    --
    Truth,
    James Curran
    [erstwhile VC++ MVP]

    Home: www.noveltheory.com Work: www.njtheater.com
    Blog: www.honestillusion.com Day Job: www.partsearch.com

    "Rachel Suddeth" <rachel@bldhoun d.com> wrote in message
    news:OgtLzpLVFH A.1200@TK2MSFTN GP14.phx.gbl...[color=blue]
    > I would like to write a designer verb for a class I have that inherits[/color]
    from[color=blue]
    > TabControl. I figure the only way to do that without breaking the special
    > designer stuff that works for TabControl would be to inherit from whatever
    > Designer class is currently used for the TabControl. But I can't find out
    > what that is. There must be one... I would hope it wouldn't be sealed...
    > anyone know what it's called or how to get information about it? Or know[/color]
    of[color=blue]
    > another way to go about this?
    >
    > -Rachel
    >
    >[/color]


    Comment

    • Rachel Suddeth

      #3
      Re: ControlDesigner for TabControl

      Ugh. It's not sealed, but has "internal" visibility, so I don't think I can
      inherit from it.

      "James Curran" <jamescurran@mv ps.org> wrote in message
      news:eDoPT8LVFH A.3024@TK2MSFTN GP14.phx.gbl...[color=blue]
      > First, quickly go to http://www.aisto.com/roeder/dotnet/ and download
      > the greatest .Net utility ever, Lutz Roeder's Reflector.
      >
      > Then run it, and navagate to "System.Windows .Forms.TabContr ol".
      > Right-click and choose "Disassembl er". Read the information you desire
      > ("System.Window s.Forms.Design. TabControlDesig ner, System.Design,
      > Version=1.0.500 0.0") from the new panel.
      > --
      > --
      > Truth,
      > James Curran
      > [erstwhile VC++ MVP]
      >
      > Home: www.noveltheory.com Work: www.njtheater.com
      > Blog: www.honestillusion.com Day Job: www.partsearch.com
      >
      > "Rachel Suddeth" <rachel@bldhoun d.com> wrote in message
      > news:OgtLzpLVFH A.1200@TK2MSFTN GP14.phx.gbl...[color=green]
      > > I would like to write a designer verb for a class I have that inherits[/color]
      > from[color=green]
      > > TabControl. I figure the only way to do that without breaking the[/color][/color]
      special[color=blue][color=green]
      > > designer stuff that works for TabControl would be to inherit from[/color][/color]
      whatever[color=blue][color=green]
      > > Designer class is currently used for the TabControl. But I can't find[/color][/color]
      out[color=blue][color=green]
      > > what that is. There must be one... I would hope it wouldn't be sealed...
      > > anyone know what it's called or how to get information about it? Or know[/color]
      > of[color=green]
      > > another way to go about this?
      > >
      > > -Rachel
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Mick Doherty

        #4
        Re: ControlDesigner for TabControl

        http://dotnetrix.co.uk/tabcontrols.html -->Tabcontrol using custom tabpages.

        --
        Mick Doherty
        Dotnetrix offers Nothing. Standard and Premium versions available.



        "Rachel Suddeth" <rachel@bldhoun d.com> wrote in message
        news:OgtLzpLVFH A.1200@TK2MSFTN GP14.phx.gbl...[color=blue]
        >I would like to write a designer verb for a class I have that inherits from
        > TabControl. I figure the only way to do that without breaking the special
        > designer stuff that works for TabControl would be to inherit from whatever
        > Designer class is currently used for the TabControl. But I can't find out
        > what that is. There must be one... I would hope it wouldn't be sealed...
        > anyone know what it's called or how to get information about it? Or know
        > of
        > another way to go about this?
        >
        > -Rachel
        >
        >[/color]


        Comment

        • Rachel Suddeth

          #5
          Re: ControlDesigner for TabControl

          Bless you, Mick, this is perfect. I was looking at doing something like this
          (inheriting from ParentControlDe signer) but was afraid my boss would think
          it was too big a job & wouldn't let me (could've done enough to get by with
          standard TabPages plus an ExtenderProvide r or two, but that would've been
          awkward.) But with sample code, it's a no-brainer to do it the right way :-)

          And you give me code to copy for the cancelable SelectedIndexCh anging event
          that we were going to have to write anyway (can't think why that wasn't
          supplied in the first place - seems like an obvious need.) I could just kiss
          you!
          (shhh, don't tell my husband i said that)

          -Rachel


          "Mick Doherty"
          <EXCHANGE#WITH@ AND.REMOVE.SQUA REBRACKETS.[mdaudi100#ntlwo rld.com]> wrote in
          message news:%23Ju4btMV FHA.3280@TK2MSF TNGP09.phx.gbl. ..[color=blue]
          > http://dotnetrix.co.uk/tabcontrols.html -->Tabcontrol using custom[/color]
          tabpages.[color=blue]
          >
          > --
          > Mick Doherty
          > http://dotnetrix.co.uk/nothing.html
          >
          >
          > "Rachel Suddeth" <rachel@bldhoun d.com> wrote in message
          > news:OgtLzpLVFH A.1200@TK2MSFTN GP14.phx.gbl...[color=green]
          > >I would like to write a designer verb for a class I have that inherits[/color][/color]
          from[color=blue][color=green]
          > > TabControl. I figure the only way to do that without breaking the[/color][/color]
          special[color=blue][color=green]
          > > designer stuff that works for TabControl would be to inherit from[/color][/color]
          whatever[color=blue][color=green]
          > > Designer class is currently used for the TabControl. But I can't find[/color][/color]
          out[color=blue][color=green]
          > > what that is. There must be one... I would hope it wouldn't be sealed...
          > > anyone know what it's called or how to get information about it? Or know
          > > of
          > > another way to go about this?
          > >
          > > -Rachel
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...