If you want to change the program other then yours then you can use SetWindowText API. First you would have to know the window handle (hWnd) of the window you want to change the caption for.
Where WindowHwnd is the window handle of the program you want to change the captioh for. If you need to find the window first, then you can use FindWindowEx API to get the hWnd.Code:Private Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long Private Sub Command1_Click() SetWindowText WindowHwnd, "New Caption" End Sub
------------------
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819




Reply With Quote