Başlatınızın İsmini Değiştirin
1 sayfadaki 1 sayfası
Başlatınızın İsmini Değiştirin
Mantık : Textboxa isimyazılacak , buton ile başlatın ismi değişecek.
Araçlar : 1 TEXTBOX 1 COMMAND BUTTON
KODLAR :
Private Const WM_SETTEXT = &HC
Private Const WM_GETTEXT = &HD
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 SendMessageSTRING Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
Private Sub Command1_Click()
SendMessageSTRING FindWindowEx(FindWindow("Shell_TrayWnd", vbNullString), 0&, "button", vbNullString), WM_SETTEXT, 256, Text1.Text
End Sub
Araçlar : 1 TEXTBOX 1 COMMAND BUTTON
KODLAR :
Private Const WM_SETTEXT = &HC
Private Const WM_GETTEXT = &HD
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 SendMessageSTRING Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
Private Sub Command1_Click()
SendMessageSTRING FindWindowEx(FindWindow("Shell_TrayWnd", vbNullString), 0&, "button", vbNullString), WM_SETTEXT, 256, Text1.Text
End Sub
1 sayfadaki 1 sayfası
Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz