Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

Usercontrol still consumes keydown even after closing form?

$
0
0
I've got a problematic control, I've got this usercontrol that inherits from a commercial datetimepicker, problem is, when it (the control) is focused and I press Esc which closes the form I am encountering an argument null error for the keydown event of the usercontrol (was not able to get tthe exact error). Should it not be that if the form where the control belongs is closed then all events for that control should at least be cancelled already?

Thanks for any info.

Viewing all articles
Browse latest Browse all 27554

Trending Articles



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