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#
tutorial
6 Posts 5 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
    saurabh lucky
    wrote on last edited by
    #1

    hi everybody, how to add event to a check box. as soon as the checkbox is clicked i want to display a label which was invisible earlier. thanx n regards, saurabh.

    M 1 Reply Last reply
    0
    • S saurabh lucky

      hi everybody, how to add event to a check box. as soon as the checkbox is clicked i want to display a label which was invisible earlier. thanx n regards, saurabh.

      M Offline
      M Offline
      M Riaz Bashir
      wrote on last edited by
      #2

      click on checbox and then open Properties windows and then click on Events ;)

      A 1 Reply Last reply
      0
      • M M Riaz Bashir

        click on checbox and then open Properties windows and then click on Events ;)

        A Offline
        A Offline
        ashu singh
        wrote on last edited by
        #3

        hi i am a friend of saurabh.pls also tell what the next step is?

        N 1 Reply Last reply
        0
        • A ashu singh

          hi i am a friend of saurabh.pls also tell what the next step is?

          N Offline
          N Offline
          Neha_Gupta
          wrote on last edited by
          #4

          in the code window make the visible property of label true like label1.visible=true; Hope this will work.:)

          NEHA GUPTA

          A 1 Reply Last reply
          0
          • N Neha_Gupta

            in the code window make the visible property of label true like label1.visible=true; Hope this will work.:)

            NEHA GUPTA

            A Offline
            A Offline
            ashu singh
            wrote on last edited by
            #5

            hi but i want textbox to be enabled at the checking of checkbox.else it should remain non-editable. i tried what u suggested.but it didnt work.

            C 1 Reply Last reply
            0
            • A ashu singh

              hi but i want textbox to be enabled at the checking of checkbox.else it should remain non-editable. i tried what u suggested.but it didnt work.

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

              It takes two of you to work this out ? Are you in a class ? If not, then you need probably to give up on windows for a while and learn enough basic programming to give you a background which would make you able to follow how these things work. A checkbox has an event which is fired when the check state is changed.  What you do when that happens is up to you, if it's setting the Enabled property, the Visible property, or something else.  You asked to make a label visible, the answer you got was correct.

              Christian Graus - C++ MVP

              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