Basically : How to program controls on a form so that if they are synchronised with each other, the updating of one control does not create a domino effect of recurring updates between the two or more controls.
Eg: Listbox and Spinbutton synchronised through a public variable.
The onchange event with a click on the listbox should update the spinbutton value without this conseguent change in the spinbutton returning an update to the listbox. (and viceversa)
ie. How to switch off the controls events for a moment.
I am stuck with finding an elegant solution. I managed to get through in part using boolean flags but I realise this is not the way.
I believed that this could be done without classing the controls however options like Application.EnableEvents=False does not work.
[This is an MsOffice App mainly through VBA forms.]
Any help/examples would be most appreciated
Thanks
Eg: Listbox and Spinbutton synchronised through a public variable.
The onchange event with a click on the listbox should update the spinbutton value without this conseguent change in the spinbutton returning an update to the listbox. (and viceversa)
ie. How to switch off the controls events for a moment.
I am stuck with finding an elegant solution. I managed to get through in part using boolean flags but I realise this is not the way.
I believed that this could be done without classing the controls however options like Application.EnableEvents=False does not work.
[This is an MsOffice App mainly through VBA forms.]
Any help/examples would be most appreciated
Thanks