|
-
Jul 17th, 2003, 05:01 AM
#1
Thread Starter
Member
Form Focused & unfocused
Dear All
I like to start a timer when the form Unfocused
and i like to reset the timer when the form focused
when the timer expired during the unfocused period
I like to close the form
I want to do this for security reason
any help or advise will be very much apreciated
salih
-
Jul 17th, 2003, 05:48 AM
#2
Sleep mode
Use LostFocus and GotFocus events of the form .
-
Jul 17th, 2003, 06:01 AM
#3
Thread Starter
Member
Form Focused & unfocused
Dear Friend
Form has not got LostFocus & GotFocus
Properties
many thanks
salih
-
Jul 17th, 2003, 06:11 AM
#4
Sleep mode
huh ? I said events of the form not properties .
-
Jul 17th, 2003, 06:20 AM
#5
Thread Starter
Member
Form Focused & unfocused
I am very sorry
actually I mean Event
I could not find any form event support
LostFocus & GotFocus
Many Thanks
salih
-
Jul 17th, 2003, 06:39 AM
#6
Sleep mode
VB Code:
Private Sub Form1_LostFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.LostFocus
'Enable/Disable the timer
End Sub
Private Sub Form1_GotFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.GotFocus
'Enable/Disable the timer
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|