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
Post a Comment