Forum Discussion

Dewayne_Pinion's avatar
Dewayne_Pinion
Contributor
10 years ago
Solved

Checking enabled property of toolstrip buttons not seeing correct state

Hello, I have an issue that is causing me to pull my hair out :) I have a toolstrip with buttons for our general software commands (New/Open/Edit/Save/etc....). When I test the state of these button...
  • HKosova's avatar
    10 years ago

    Hi Dewayne,

    Remove ; at the end of your if line:

     

    if (...... == true) ;

    The ; marks the end of the statement, so in this case if doesn't have the then-else parts.