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. check boxes in C#.net 2005

check boxes in C#.net 2005

Scheduled Pinned Locked Moved C#
csharpquestion
4 Posts 4 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.
  • R Offline
    R Offline
    Rohit Dev
    wrote on last edited by
    #1

    hi all, how can i create checkboxes dynamically in a C#.net2005 WEindows application.. Thanks in advance..

    G M C 3 Replies Last reply
    0
    • R Rohit Dev

      hi all, how can i create checkboxes dynamically in a C#.net2005 WEindows application.. Thanks in advance..

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Create a CheckBox control and add it to the form.

      --- b { font-weight: normal; }

      1 Reply Last reply
      0
      • R Rohit Dev

        hi all, how can i create checkboxes dynamically in a C#.net2005 WEindows application.. Thanks in advance..

        M Offline
        M Offline
        Malcolm Smart
        wrote on last edited by
        #3

        //create a new checkbox CheckBox myBox = new CheckBox(); //set if (if required) myBox.Checked = true; //add it to the parent myPanel.Controls.Add( myCheckBox ); //assumes myPanel exists

        Regards Malc *********************************************

        1 Reply Last reply
        0
        • R Rohit Dev

          hi all, how can i create checkboxes dynamically in a C#.net2005 WEindows application.. Thanks in advance..

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

          The example you were given is sort of right, but if you want to see the checkbox whre you want it, you need to set the Left, Top, Width and Height properties as well.

          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