Please Help - VB.NET Problem

Maaatt

Newcomer
Joined
Jan 14, 2005
Messages
2
' Setting clipboard data to textbox
TextBox2.Text = Clipboard.GetDataObject.GetData(DataFormats.Text)

is the code i use to paste the text from the clipboard into TextBox2 but now im wondering how i would go about pasting the text whereever the mouse has focus.

Can anybody help? If you could link me to good sources or possibly do this for me i'd be very appreciative.

Thanks in advance.
 
hey thats the code which was used in vb6 .. in vb.net there is inbulti support of copyin and pasting the data....


what all u have to do is

suppose u have richtextbox1 in which u have some text


richtextbox1.cut
richtextbox2.copy
richtextbox1.paste
 
Ok so what if i wanted to further this and have it paste whereever the cursor is, say notepad or IE or word etc. rahter than into a specific textbox?
 
Back
Top