Unrequested call of subroutine - bug ?

petrbury

Member
Licensed User
Longtime User
I've found some oddnes . I have a button and few radiobuttons on my form. Radiobuttons are managed by AddEvent. It works fine, but command Button1.Enabled = False causes an unexpected call of sub, which is for Radiobutton event.
I've attached a simple example program. Every click on any Radiobutton increases a number on form (that's OK). Click on button calls Button1.Enabled = False and number on form will increase (which isn't OK).
Is there any way how to repair it ?
Thanks
Petr
 

Attachments

  • tst.sbp
    1.1 KB · Views: 191

petrbury

Member
Licensed User
Longtime User
Thank You very much, it works.
I've added Focus to different button before disabling that one and now it's OK.:icon_clap:
Petr
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…