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. Windows Application C#

Windows Application C#

Scheduled Pinned Locked Moved C#
csharpvisual-studiohelp
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.
  • U Offline
    U Offline
    User 13030456
    wrote on last edited by
    #1

    In a C# Windows Application Project, On Checking both 2 Check Boxes, a Button Should be Enabled, If any one is Unchecked, Button should be Disabled. Presently ON Form_Load The Same Button should be Disabled.This is working fine.Project Done using Visual Studio 2012. Please Help me Someone Prashanth.B.S

    OriginalGriffO M Z 3 Replies Last reply
    0
    • U User 13030456

      In a C# Windows Application Project, On Checking both 2 Check Boxes, a Button Should be Enabled, If any one is Unchecked, Button should be Disabled. Presently ON Form_Load The Same Button should be Disabled.This is working fine.Project Done using Visual Studio 2012. Please Help me Someone Prashanth.B.S

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Handle the CheckBox.CheckChanged event: CheckBox.CheckedChanged Event (System.Windows.Forms)[^] - you can use the same handler for both boxes - and check the Checked status of each to set the Enabled property of the button:

      myTextBox.Enabled = checkbox1.Checked && checkbox2.Checked;

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      • U User 13030456

        In a C# Windows Application Project, On Checking both 2 Check Boxes, a Button Should be Enabled, If any one is Unchecked, Button should be Disabled. Presently ON Form_Load The Same Button should be Disabled.This is working fine.Project Done using Visual Studio 2012. Please Help me Someone Prashanth.B.S

        M Offline
        M Offline
        Michael_Davies
        wrote on last edited by
        #3

        Where is your code, what have you done so far? Relatively simple all you need it to manage the FormLoad and checkbox events.

        1 Reply Last reply
        0
        • U User 13030456

          In a C# Windows Application Project, On Checking both 2 Check Boxes, a Button Should be Enabled, If any one is Unchecked, Button should be Disabled. Presently ON Form_Load The Same Button should be Disabled.This is working fine.Project Done using Visual Studio 2012. Please Help me Someone Prashanth.B.S

          Z Offline
          Z Offline
          ZurdoDev
          wrote on last edited by
          #4

          Member 13062505 wrote:

          This is working fine

          Glad to hear you got it working. Pretty simple, isn't it. :thumbsup:

          There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.

          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