how to do SendMessage / Postmessage

you can use sendmessage , but modified for your .net requirements , you must specify the type of lparam depending on circumstances , eg : if its a string ByVal lParam As String

Code:
Public Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hwnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As Integer, ByRef lParam As String) As Integer

SendMessage( Control.Handle goes here , message to send here , 0 , " lparam ( eg: string ) here )
 
Back
Top