squaliem Posted June 15, 2004 Posted June 15, 2004 I need to trigger the drop down of the date time picker control in response to the user pressing the F4 key and Shift+Down. In VB6 I could do this using the SendMessage API, but this no longer works in .NET. Can anyone tell me how I can do this in my VB.NET app? TIA Quote
Administrators PlausiblyDamp Posted June 15, 2004 Administrators Posted June 15, 2004 SendMessage should still work under .Net - could you post your existing code? If you have copied the SendMessage declare from a VB6 app then it will need to be modified to take into account the changes in data types, try this one. Declare Auto Function SendMessage Lib "user32.dll" (ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As UIntPtr, ByVal lParam As IntPtr) As IntPtr Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.