borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (answers)Next Topic (how to get the access level of a folder in a machine or in LAN???) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : Help with SendMessage
Poster Message
Portnoy1982
Level: Trainee

Registered: 30-08-2006
Posts: 1

icon Help with SendMessage

Hi guys, I absolutely need your help
First of all I say that i'm italian and my english isn't very well so try to understand what i say
Ok that's my problem
I'm creating an application in VB.net that, by clicking on a button, saves on the clipboard the selected text and automatically pastes it into an opened external windows for example the notepad.
I know that i must use the API function but I don't know how.

I declare the SendMessage function and I use it in this way.

(this is the handler of the button that copies and pastes the text)

Dim fm As New Process, h As Long, mex As String
       For Each fm In Process.GetProcesses
            If fm.ProcessName = "wordpad" Then
                h = fm.Handle
                mex = ListDM.SelectedItem.ToString
                Clipboard.SetText(mex)
                SendMessageByString(h,WM_SETTEXT,mex)
                'MsgBox("operazione riuscita")
            End If
        Next

but this doesn't produce what i'm trying to do
can someone help me please?   

30-08-2006 at 09:47 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB.Net : Help with SendMessage
Previous Topic (answers)Next Topic (how to get the access level of a folder in a machine or in LAN???) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder