|
-
Nov 3rd, 2011, 10:41 AM
#1
Thread Starter
Addicted Member
Need help with Copy and Paste
VB 2008
I'm trying to highlight some text in a web browser and copy and paste it into a textbox. When I run the first two commands below and manually click on the textbox and paste, the text is copied correctly.
WebBrowser1.Focus()
SendKeys.Send("^{INSERT}")
I tried the following possible commands to program that function but none of it works.
'TextBox3.Text = Clipboard.GetText()
'TextBox3.Text = Clipboard.GetDataObject.
'Dim iData As IDataObject = Clipboard.GetDataObject()
'TextBox3.Text = CType(iData, String)
'Dim iData As IDataObject = Clipboard.GetDataObject()
'TextBox3.Text = CType(iData.GetData(DataFormats.Text), String)
Your help would be appreciated. Thanks, Sam
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|