bazzer747 25 Posted September 26, 2020 Hi, I have a button on a form that I initially have disabled, as I don't want it clickable until a couple of comboboxes on the form have values selected. When the two comboboxes have been selected I enable the button. However, a first click on the button does nothing. A second click actions the code behind the OnClick event - which is to open up another form. I have a breakpoint on the OnClick event but nothing happens on the first click. On the second click the breakpoint kicks in and takes me to the OnClick event. It's as though the first click never happened. Any thoughts on why this should be would be appreciated. Share this post Link to post
FPiette 385 Posted September 26, 2020 Try to write a very simple program to reproduce the error. For example a single form with two comboboxes and a button. Implement the logic you exposed in your question and in the button OnClick, just call ShowMessage. If it doesn't work, publish the code here. If it works, then double check you application to find whicg error you made. 1 Share this post Link to post
Attila Kovacs 631 Posted September 26, 2020 a swallowed windows message like button down / up, usually when you manipulate the focus inside events, for example 1 Share this post Link to post