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 Event

CheckBox Event

Scheduled Pinned Locked Moved C#
question
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.
  • A Offline
    A Offline
    anupamwb
    wrote on last edited by
    #1

    "Enable/Disable a button based on whether a checkbox has been checked or Not" How can I do this.what is the procedure ? anup

    RaviBeeR P P 3 Replies Last reply
    0
    • A anupamwb

      "Enable/Disable a button based on whether a checkbox has been checked or Not" How can I do this.what is the procedure ? anup

      RaviBeeR Offline
      RaviBeeR Offline
      RaviBee
      wrote on last edited by
      #2

      anupamwb wrote:

      what is the procedure ?

      Here's the procedure:

      1. Visit MSDN
      2. Find the checkbox event to which you need to respond
      3. Determine the button's property that you need to change
      4. Write code to do that and stick in the event handler you discovered in step 2

      /ravi

      This is your brain on Celcius Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

      1 Reply Last reply
      0
      • A anupamwb

        "Enable/Disable a button based on whether a checkbox has been checked or Not" How can I do this.what is the procedure ? anup

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        You'll want to set the Enabled property equal to the Checked property. Do this in an event handler for the checkbox when the checked value is changed.


        "I've seen more information on a frickin' sticky note!" - Dave Kreskowiak

        1 Reply Last reply
        0
        • A anupamwb

          "Enable/Disable a button based on whether a checkbox has been checked or Not" How can I do this.what is the procedure ? anup

          P Offline
          P Offline
          Pankaj Joshi
          wrote on last edited by
          #4

          private void chkOptions_CheckedChanged(object sender, EventArgs e) { if (chkOptions.Checked == true) button1.Enable = true; else button1.Enable = false; }

          Regards Pankaj Joshi If you want to shape your dreams into reality, please wake-up...

          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