VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Change Windows Caption

by Dillon (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

This Program Changes the Caption of > ALMOST < any windows program!

Assumes
Surprizingly Easy... Just Type the text of the Windows Program that you wish to change then type the text you want to change it too!
Side Effects
There is no Side Effects to This Program
API Declarations
Public Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Rate Change Windows Caption

'make 2 text boxes
'Name them Text1 - For The Windows Caption
'And Text2 - For the New WIndows Caption
'Make 1 Button 
'Name it Command1
Private Sub Command1_Click()
Dim temp As Long
temp = FindWindow(vbNullString, Text1.Text)
SetWindowText temp, Text2.Text
End Sub

Download this snippet    Add to My Saved Code

Change Windows Caption Comments

No comments have been posted about Change Windows Caption. Why not be the first to post a comment about Change Windows Caption.

Post your comment

Subject:
Message:
0/1000 characters