Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

The Button.Click event is not raised when the button receives focus via the Tab key and the previous control uses a custom validation

$
0
0

Hi,

My name is Vladislav Yurgens. I'm a software engineer representing the WinForms team at DevExpress.

Recently, we were reported that ourSimpleButton control does not raise the Click event when it receives focus via theTab key from the control with a custom validation (ex. the TextEditeditor). Having investigated this issue, we found that it is also reproducible with standard controls (Button,TextBox). Take a look at the corresponding sample project: 

https://devexpress-my.sharepoint.com/:u:/p/vladislav_yurgens/ES7U2Um0lHRLt0CcKKZH5tIBgbUU6kMyAxfcFjTn1B5FQg?e=LjOvrg

To reproduce the problematic behavior, do the following:

1) Run the application and press theTEST button to make sure that it operates properly;

2) Focus thesecondTextBox and enter the following string: "4444";

3) Press theTab key to perform the validation (it should fail);

4) Change the focusedTextBox' value to "44444" to pass the validation;

5) Try to press theTEST button and you will see that its Click event is not raised anymore. 

I have also recorded a video to illustrate the problematic behavior - https://i.imgur.com/8TRNd8I.gifv

Since this issue affects a lot of our users, it's important to resolve it. 

If you are aware of this problem, are there any workarounds available?

I am looking forward to your response.


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>