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

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

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

StringGrid issue in Delphi XE8 firemonkey mobile app -