|
-
Dec 30th, 2005, 05:09 AM
#1
Thread Starter
New Member
inputbox on top
How do you make an inputbox 'always on top' or active?
Because, I want my program to show the inputbox when i press F8.
My program does not have focus at that time, but i hooked the keyboard, so there is no problem.
Imagine i am in word, it fills my whole screen, and then i press F8, the inputbox then pops up, but, BEHIND word. I want it to pop up in front of all other windows and have immediate focus. How can i do that?
-
Dec 30th, 2005, 05:27 AM
#2
Fanatic Member
Re: inputbox on top
i think when you open an input box, it always stays on top of other programs... try changing the input box properties...
WARNING: Excessive coding is dangerous to your health... if symptoms persist insult your doctor...
-
Dec 30th, 2005, 05:36 AM
#3
Re: inputbox on top
I think ou can use SetForegroundWindow API to do that
VB Code:
Private Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Long) As Long
'In a Form, call it this way
SetForegroundWindow Me.hwnd
To use it with an inputbox, you'll have to find the inputbox's hwnd first
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
|