|
-
Oct 15th, 2001, 01:49 PM
#1
Thread Starter
New Member
Web Service to WinForms SendMessage()
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
-
Oct 15th, 2001, 04:56 PM
#2
Junior Member
Will this help?
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
This is our world now, The world of the pop-trunk and the switch.
The beauty of my Broad :-)
We wage wars, murder, cheat, lie to our women and make them believe its for their own good. And we're the criminals.
My crime is but of pimpology.
I am a Pimp, and this is my manefesto!
-
Oct 16th, 2001, 04:18 AM
#3
Thread Starter
New Member
Thanks SkettaLee
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|