Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: ignore "Leave" in a Windows Forms Textfield when a Button is pushed

$
0
0

No Chris, I can check the Leave Event which, when the field looses Focus calls a method "EvaluateInput". This I need to suppress when no key is pressed. Leave or Validating don't detect another object like a button having been pressed because they occur first.

I can trap Key Events like Function or Enter key through System.Windows.Forms.KeyEventArgs, but, not the Tab Key. Latter would allow me to evaluate a KeyPressed Event rather than Leave to do something.


Viewing all articles
Browse latest Browse all 4356


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