Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Enable custom control to be editable or intreactive in Design Mode

Enable custom control to be editable or intreactive in Design Mode

Scheduled Pinned Locked Moved C#
designquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    leeoze 0
    wrote on last edited by
    #1

    I've created a custom control named MyCs. I added the MyCs control to My Form1 and called it MyCs1. Now I want to add Control to MyCs1 in design mode. i.e. to drag a text box and add it to MyCs1. (Such as what you do on panel control) When I try it; the TextBox is added to Form1 and not to MyCs1. Any ideas?

    L 1 Reply Last reply
    0
    • L leeoze 0

      I've created a custom control named MyCs. I added the MyCs control to My Form1 and called it MyCs1. Now I want to add Control to MyCs1 in design mode. i.e. to drag a text box and add it to MyCs1. (Such as what you do on panel control) When I try it; the TextBox is added to Form1 and not to MyCs1. Any ideas?

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      You probably need to inherit from a ContainerControl such as ContainerControl or UserControl.

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 3 out now

      B 1 Reply Last reply
      0
      • L leppie

        You probably need to inherit from a ContainerControl such as ContainerControl or UserControl.

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 alpha 3 out now

        B Offline
        B Offline
        Brady Kelly
        wrote on last edited by
        #3

        You go leppie, keep those useless 1 answers coming.

        L 1 Reply Last reply
        0
        • B Brady Kelly

          You go leppie, keep those useless 1 answers coming.

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          Huh? :confused:

          xacc.ide - now with TabsToSpaces support
          IronScheme - 1.0 alpha 3 out now

          B 1 Reply Last reply
          0
          • L leppie

            Huh? :confused:

            xacc.ide - now with TabsToSpaces support
            IronScheme - 1.0 alpha 3 out now

            B Offline
            B Offline
            Brady Kelly
            wrote on last edited by
            #5

            Somebody una-voted you on your answer above.

            L 1 Reply Last reply
            0
            • B Brady Kelly

              Somebody una-voted you on your answer above.

              L Offline
              L Offline
              leppie
              wrote on last edited by
              #6

              I dont see how it was useless though...

              xacc.ide - now with TabsToSpaces support
              IronScheme - 1.0 alpha 3 out now

              B 1 Reply Last reply
              0
              • L leppie

                I dont see how it was useless though...

                xacc.ide - now with TabsToSpaces support
                IronScheme - 1.0 alpha 3 out now

                B Offline
                B Offline
                Brady Kelly
                wrote on last edited by
                #7

                Neither do I, now go Google 'sarcasm'. ;P

                Semicolons: The number one seller of ostomy bags world wide. - dan neely

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups