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. code to make enable button in c#.net

code to make enable button in c#.net

Scheduled Pinned Locked Moved C#
csharp
3 Posts 3 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
    ursbuddy
    wrote on last edited by
    #1

    i want the code to enable one button out of three when other two are are disable and vice versa in c#.net

    ursbuddy

    C K 2 Replies Last reply
    0
    • U ursbuddy

      i want the code to enable one button out of three when other two are are disable and vice versa in c#.net

      ursbuddy

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

      That's pretty straightforward. What have you tried ? To tie the three buttons together, you'd need to create a control. It's easier just to write code that enables one button and disables the other two.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      1 Reply Last reply
      0
      • U ursbuddy

        i want the code to enable one button out of three when other two are are disable and vice versa in c#.net

        ursbuddy

        K Offline
        K Offline
        kourvoisier
        wrote on last edited by
        #3

        you must think about how this will logically work then...... Toggle between the button.enabled property. if you want the button disabled you say button1.enabled = false; if you want the button enabled you say button1.enabled = true; That should u going dude.

        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