Unable to find an entry point named 'PostMessage' in DLL 'user32.dll'.
'part of the usings Imports System.Runtime.InteropServices 'declares Private Declare Function PostMessage Lib "user32.dll" (ByVal hWnd As IntPtr, ByVal msg As Int32, ByVal wParam As Int32, ByVal lParam As Int32) As Boolean Private Const WM_LBUTTONDOWN As Int32 = 513 'method to call dropdown Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs) handles button1.click Dim x As Int32 = (dateTimePicker1.Width - 10) Dim y As Int32 = (dateTimePicker1.Height / 2) Dim lParam As Int32 = (x + (y * 65536)) PostMessage(dateTimePicker1.Handle, WM_LBUTTONDOWN, 1, lParam) End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)