1 pièce(s) jointe(s)
transformer ce code pour wpf
j'ai ce code qui est a l'origine pour windowsform je veux le convertir pour une application wpf
Code:
1 2 3 4 5 6 7
| Public Function ConnectToHID(ByRef targetForm As Form) As Boolean
Dim pHostWin As Integer = targetForm.Handle.ToInt32
FWinHandle = pHostWin
pHostWin = hidConnect(FWinHandle)
FPrevWinProc = DelegateSetWindowLong(FWinHandle, GWL_WNDPROC, Ref_WinProc)
HostForm = targetForm
End Function |
j'ai un problème avec le ".handle" j'ai pas trouvé son equivalent en wpf