Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • Administrators
Posted

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

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...