Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

When I want to paste a text into a text box I use this code:

Clipboard.SetText("My Text")
SubjectTextBox.Paste()

It has a problem: it removes the previous clipboard contents, is there a way to paste a specific text into text box without working with clipboard?

Thanks.

Posted

You mean something like:

Dim SavedText As String = "My Text"
SubjectTextBox.Text += SavedText

Nope!

This won't work because I want to to be exactly pasted at the location of cursor, and if some text is marked be replaced, the same behavior as paste function.

I was thinking if it has a paste option that allow user to assign some text to be pasted instead of pasting from clipboard!

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