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. Visual Basic
  4. How can I make a usercontrol that can contain other controls?

How can I make a usercontrol that can contain other controls?

Scheduled Pinned Locked Moved Visual Basic
questiondockerhelp
6 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.
  • M Offline
    M Offline
    Mansourgh
    wrote on last edited by
    #1

    Hi Dear freind. I want to provide one special frame that can contain other controls. But I can't make it to container. Please help me.

    C T 2 Replies Last reply
    0
    • M Mansourgh

      Hi Dear freind. I want to provide one special frame that can contain other controls. But I can't make it to container. Please help me.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Any control can contain other controls, and the only way for that to happen is for them to be added to the Controls collection.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      M 1 Reply Last reply
      0
      • C Christian Graus

        Any control can contain other controls, and the only way for that to happen is for them to be added to the Controls collection.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

        M Offline
        M Offline
        Mansourgh
        wrote on last edited by
        #3

        Thank you for your attention. But I think you didn't understand my purpose. In VB6 when I want to make a usercontrol like frame , I add a usercontrol and then change it's containcontrols property to True. But in VB.Net I don't know how can I do that? (Converting a usercontrol to container usercontrol)

        C 1 Reply Last reply
        0
        • M Mansourgh

          Thank you for your attention. But I think you didn't understand my purpose. In VB6 when I want to make a usercontrol like frame , I add a usercontrol and then change it's containcontrols property to True. But in VB.Net I don't know how can I do that? (Converting a usercontrol to container usercontrol)

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          I don't know what that means. A usercontrol, by default is able to contain other controls. I've not used VB6.

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          M 1 Reply Last reply
          0
          • C Christian Graus

            I don't know what that means. A usercontrol, by default is able to contain other controls. I've not used VB6.

            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

            M Offline
            M Offline
            Mansourgh
            wrote on last edited by
            #5

            Sorry, in VB2005, an usercontrol is'nt containar preliminary.You should do that yourself. But I dont know how? Thanks. Mansour

            1 Reply Last reply
            0
            • M Mansourgh

              Hi Dear freind. I want to provide one special frame that can contain other controls. But I can't make it to container. Please help me.

              T Offline
              T Offline
              TwoFaced
              wrote on last edited by
              #6

              This article explains the process. http://support.microsoft.com/default.aspx?scid=kb;EN-US;322222[^]

              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