2
Reply

Toggle buttons

cbeebe79

cbeebe79

Jun 11 2010 2:54 PM
3.7k
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)