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. Dynamic controls on windows forms

Dynamic controls on windows forms

Scheduled Pinned Locked Moved C#
questionasp-netvisual-studiowinformsdata-structures
4 Posts 2 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.
  • S Offline
    S Offline
    saud_a_k
    wrote on last edited by
    #1

    Hi, Im used to adding controls like radio buttons on web forms in a PlaceHolder , 1.Is there a similar control on windows form as well otherwise how can I add controls dynamically on a windows form. 2.And if I add RadioButtons I need to group them by a 2 by 2 array.. In VS 2005 there is no group property for radio buttons... How do I do it? Help plz..

    _____________________________________________________ Yea! I could be wrong...

    C 1 Reply Last reply
    0
    • S saud_a_k

      Hi, Im used to adding controls like radio buttons on web forms in a PlaceHolder , 1.Is there a similar control on windows form as well otherwise how can I add controls dynamically on a windows form. 2.And if I add RadioButtons I need to group them by a 2 by 2 array.. In VS 2005 there is no group property for radio buttons... How do I do it? Help plz..

      _____________________________________________________ Yea! I could be wrong...

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

      1 - There is a panel, but in Windows Forms, you can specify the location of your control, so it's not really needed 2 - Group them by placing them where you want them to be.

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

      S 1 Reply Last reply
      0
      • C Christian Graus

        1 - There is a panel, but in Windows Forms, you can specify the location of your control, so it's not really needed 2 - Group them by placing them where you want them to be.

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

        S Offline
        S Offline
        saud_a_k
        wrote on last edited by
        #3

        2. I wnat group them in 2 by 2.. like radButton1a | radButton1b radButton2a | radButton2b radButton3a | radButton3b etc... Like I want radiobuttons 2 and 3 to be independent of 1... When I check radButton1b, only radButton 1a should be unchecked.. I hope I explain...

        _____________________________________________________ Yea! I could be wrong...

        C 1 Reply Last reply
        0
        • S saud_a_k

          2. I wnat group them in 2 by 2.. like radButton1a | radButton1b radButton2a | radButton2b radButton3a | radButton3b etc... Like I want radiobuttons 2 and 3 to be independent of 1... When I check radButton1b, only radButton 1a should be unchecked.. I hope I explain...

          _____________________________________________________ Yea! I could be wrong...

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

          I dunno if there's an easier way, but perhaps you need to create a control that holds two radio buttons, which will group them seperate from the rest of the form ?

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

          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