Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

' 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.

Posted

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

Posted
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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...