Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21342

[RESOLVED] Setting Focus of a Textbox in an External application

$
0
0
I have searched everywhere on multiple forums and can't find the answer to this tricky one.

Currently I have used the SetForegroundWindow to bring the window to the front first and I have the hWnd of the textbox in the external application and I also have attached the thread input to the other application. It's also just the current "tab focus" that is all i needed to change, for example the window by default has a command button "tab focused" (highlighted) and I would like to change that to the textbox, either while the form is visible or not, but when the form gets focus I would like the focus to be in the textbox ready to type.

So far i've tried: Using the SetFocus API, I've tried using SendMessage to send BM_CLICK (although of course that wouldn't work) and I'm stuck at this point, any ideas?

Viewing all articles
Browse latest Browse all 21342

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>