Results 1 to 3 of 3

Thread: Web Service to WinForms SendMessage()

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Posts
    10

    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

  2. #2
    Junior Member SkettaLEE's Avatar
    Join Date
    Oct 2001
    Location
    Shaw AFB, SC
    Posts
    30

    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 LongByVal wMsg As LongByVal wParam As LonglParam As Any) As Long

    Public Const WM_SETTEXT 12

    Public Sub SendText(As StringhWnd As Integer)

                    
        
    SendMessage hWndWM_SETTEXTByVal 0ByVal x
        SendMessage hWnd
    WM_SETTEXTByVal 0vbCrLf
        
    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!

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Posts
    10

    Smile 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
  •  



Click Here to Expand Forum to Full Width