sur une application tiers qui n'est pas de Microsoft
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Const CB_ERR = (-1) Private Const CB_SELECTSTRING = &H14D Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long Private Sub Command1_Click() Dim ret As Long ret = SendMessage(Combo1.hwnd, CB_SELECTSTRING, -1, StrPtr("Patates")) Me.Caption = ret End Sub Private Sub Form_Load() Combo1.AddItem "Radis" Combo1.AddItem "Carottes" Combo1.AddItem "Patates" Combo1.AddItem "Ambulances" End Sub