Je suis en train de mettre à jour une application existante qui scanne les codes à barres et est écrite dans VB.net fonctionnant sous Windows compact framework 3.5. Le scanner est un POCKETPC exécutant Windows Mobile Handheld 6.5. J'ai une combobox DropDownStyle='DropDown'
. Je veux programmer la boîte.Windows compact framework 3.5 liste déroulante combobox
Je codé les suivantes:
<DllImport("coredll.dll", SetLastError:=True)> _
Public Shared Function SendMessage(ByVal hWnd As IntPtr, _
ByVal Msg As Integer, _
ByVal wParam As Integer, _
ByVal lParam As Integer) As IntPtr
End Function
Const CB_SHOWDROPDOWN As Int32 = &H14F
SendMessage(cmbVisitoringUnit.Handle, CB_SHOWDROPDOWN, 1, 0)
Le code de retour est 1, mais pas dropdown a lieu. Qu'est-ce que je rate?