Vb.NET Disabling timer when window loses focus -


i'm developing quiz software in vb. net has 2 separate windows after login. i've added timers each of windows. issue how disable timer count of 1 window when mouse focus on other window??

as hans suggested, use form deactivate event.

private sub form1_deactivate(sender object, e eventargs) handles mybase.deactivate     ' deactivate forms timer end sub 

Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -