VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This code is developed to change the name of start button(Only in XP)

by mahesh vaghasiya (4 Submissions)
Category: Windows System Services
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 8th June 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This code is developed to change the name of start button(Only in XP)

API Declarations


'If u r havign any kind of Comments regarding this snippet please contact at [email protected]

'This code requires one text box control and one command button

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Integer, ByVal lParam As Any) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Private Const WM_SETTEXT = &HC


Rate This code is developed to change the name of start button(Only in XP)



Dim tWnd As Long, bWnd As Long
tWnd = FindWindow("Shell_TrayWnd", vbNullString)
'Get the start-button's window handle
bWnd = FindWindowEx(tWnd, ByVal 0&, "BUTTON", vbNullString)
SendMessage bWnd, WM_SETTEXT, &O0, Text1.Text
'SetWindowText bWnd, Text1.Text
End Sub

Download this snippet    Add to My Saved Code

This code is developed to change the name of start button(Only in XP) Comments

No comments have been posted about This code is developed to change the name of start button(Only in XP). Why not be the first to post a comment about This code is developed to change the name of start button(Only in XP).

Post your comment

Subject:
Message:
0/1000 characters