cbeebe79

cbeebe79

  • NA
  • 6
  • 0

Toggle buttons

Jun 11 2010 2:54 PM
Hi

I am a VB guy making a jump to C#.  This is probably not even worth asking but in VB I would create a function that would toggle the enabled state of a group of buttons to the exact opposite of what they currently are.

button1.enabled = not button1.enabled

Not sure why, but I am stumped on this.  What would be the C# equivalent of this?

Thanks

Answers (2)