SendDlgItemMessage

C# Signature:

[DllImport("user32.dll")]
static extern IntPtr SendDlgItemMessage(IntPtr hDlg, int nIDDlgItem, uint Msg,
   UIntPtr wParam, IntPtr lParam);

VB.Net Signature:

<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Private Shared Function SendDlgItemMessage(ByVal hDlg As IntPtr, _
                        ByVal nIDDlgItem As Integer, _
                        ByVal Msg As UInteger, _
                        ByVal wParam As UInteger, _
                        ByVal lParam As UInteger) As IntPtr
End Function

VB Signature:

Private Declare Function SendDlgItemMessage Lib "user32" (ByVal hDlg As IntPtr, _
                               ByVal nIDDlgItem As Integer, _
                               ByVal Msg As UInteger, _
                               ByVal wParam As UInteger, _
                               ByVal lParam As UInteger) As IntPtr

Sample Code:

Última actualización