PDA

Click to See Complete Forum and Search --> : Text Select Cursor


zathlon
Dec 11th, 2000, 02:24 AM
I have a problem. You know the text select cursor, the blinking cursor on textboxes and whatnot. Well I load up a program, I need to set he text select cursor in that program like Notepad. Take in to account I already have that programs hWnd handle. How do I work this problem?

Dec 11th, 2000, 06:13 AM
Use the SetForegroundWindow api function.


Public Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Long) As Long

Usage

SetForegroundWindow hWnd