vb.net - Disable winform button on sheet Activate event -
i want set buttons property enable = false when worksheet activates. wrote thought pretty straight forward code:
private sub dsbemployeeboard_activateevent() handles me.activateevent dim navform new frmnavigation navform.btnmoveforward.enabled = false end sub
however, when sheet activates button not disable. missing something? buttons default enable property set true , no other code controlling property.
1.check event trigger.
2.check enabled false after assign.
3.maybe need refresh form.
Comments
Post a Comment