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

javascript - Create websocket without connecting -

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

android - Linear layout children not scrolling -