|
-
Aug 21st, 2001, 05:04 AM
#1
Thread Starter
Fanatic Member
focus
what can i use to always give my application focus over other applications? i plan to use a timer too.
Bird of Prey
Mr. Bald Eagle.
[img][/img]
-
Aug 21st, 2001, 06:20 AM
#2
Are you talking about always having your program the top most window? If so, thats pretty easy to do. If this is what you want, let me know. I have some code that will do that.
-
Aug 21st, 2001, 11:58 AM
#3
Thread Starter
Fanatic Member
i want it to always have focus so when i type, textbox gets the keystrokes.
Bird of Prey
Mr. Bald Eagle.
[img][/img]
-
Aug 21st, 2001, 12:00 PM
#4
Member
Are you trying to make a keylogger? Search the forums if so, there are a lot of threads on it.
-
Aug 21st, 2001, 12:04 PM
#5
Thread Starter
Fanatic Member
thanks for always answering filburt. i am not making a keylogger. i made a screen saver and placed in the start up directory but sometimes, my screensaver doesn't get focus so i can't type my password into the text box.
Bird of Prey
Mr. Bald Eagle.
[img][/img]
-
Aug 21st, 2001, 12:07 PM
#6
Member
Originally posted by Hawk
i want it to always have focus so when i type, textbox gets the keystrokes.
For it to ALWAYS have focus, put AppActivate Me.Caption in the Form_LostFocus event.
-
Aug 21st, 2001, 12:12 PM
#7
Thread Starter
Fanatic Member
way to go. that work but i placed in a timer. lost_focus did not work as well.
Bird of Prey
Mr. Bald Eagle.
[img][/img]
-
Aug 21st, 2001, 12:13 PM
#8
Member
But otherwise everything's cool?
-
Aug 21st, 2001, 12:17 PM
#9
Thread Starter
Fanatic Member
yes everything is cool, thanks filburt.
Bird of Prey
Mr. Bald Eagle.
[img][/img]
-
Aug 21st, 2001, 12:17 PM
#10
Member
-
Aug 21st, 2001, 01:42 PM
#11
Thread Starter
Fanatic Member
just want to share this with you Filburt. using appactivate works but when my form does not have a caption, there is a problem. i found this which works really well cuz it uses the form's handle.
Private Declare Function SetForegroundWindow Lib "user32.dll" (ByVal hwnd As Long) As Long
Bird of Prey
Mr. Bald Eagle.
[img][/img]
-
Aug 21st, 2001, 01:43 PM
#12
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
|