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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -