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. checkbox ?

checkbox ?

Scheduled Pinned Locked Moved C#
databasequestion
2 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.
  • Y Offline
    Y Offline
    youssef
    wrote on last edited by
    #1

    Hi, I have many questions about checkbox : 1/I would like to create dynamicaly 8 checkbox into a form. The name of each checkbox begin with "CHECKBOX_CAM_". So : CHECKBOX_CAM_1 CHECKBOX_CAM_2 CHECKBOX_CAM_3 ... CHECKBOX_CAM_8 2/ I would like to set/get some properties like text,position, tag,... with a SQL Database. 3/ I would like to retrieve the state of the group to a byte at any moment. when the user un/select one or more checkbox. Best Regards youssef

    Z 1 Reply Last reply
    0
    • Y youssef

      Hi, I have many questions about checkbox : 1/I would like to create dynamicaly 8 checkbox into a form. The name of each checkbox begin with "CHECKBOX_CAM_". So : CHECKBOX_CAM_1 CHECKBOX_CAM_2 CHECKBOX_CAM_3 ... CHECKBOX_CAM_8 2/ I would like to set/get some properties like text,position, tag,... with a SQL Database. 3/ I would like to retrieve the state of the group to a byte at any moment. when the user un/select one or more checkbox. Best Regards youssef

      Z Offline
      Z Offline
      zhengdong jin
      wrote on last edited by
      #2

      :) //////////////////////////////////////// CheckBox[] CheckBox1 = new CheckBox[8]; for (int i = 0; i < CheckBox1.Length; i++) { CheckBox[i].ID = "CHECKBOX_CAM_" + i.ToString().Trim(); } /////////////////////////////////////// ... public string GetCheckBoxText(int x) { return CheckBox[x].Text; } public bool[] GetChecked() { bool[] a = new bool[8] for () { ... } return a; } ASP.NET C# VB VC & SQL Windows APP ...

      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