Hi guys, please help !
How do i use SendMessage() API in either VB or C# ? I have to send data
from a WebService to a WinForms
or if you have any other method to send data, please post !
thanks in advance !
rick
Printable View
Hi guys, please help !
How do i use SendMessage() API in either VB or C# ? I have to send data
from a WebService to a WinForms
or if you have any other method to send data, please post !
thanks in advance !
rick
This is how you send a message with the enter key after it.. I dont know exactly what you need.....
PHP Code:Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Const WM_SETTEXT = 12
Public Sub SendText(x As String, hWnd As Integer)
SendMessage hWnd, WM_SETTEXT, ByVal 0, ByVal x
SendMessage hWnd, WM_SETTEXT, ByVal 0, vbCrLf
End Sub
Hi SkettaLee,
thanks very much, that was a lot of help.
another problem arises now, how do I program an App to receive the SendMessage() WM_COPY event ?
I am using the SendMessage() API successfuly on C# but not on VB7. In VB7, the API does not respond, does not crash also.
best regards,
Rick