Windows Develop Bookmark and Share   
 index > Windows Forms General > Changing Text In WebBrowser
 

Changing Text In WebBrowser

Ok. I know how to Cut, Copy, Paste and all of that to a WebBrowser Document, but how would I change the selected text? Any ideas?
D3M1TR1US  Monday, March 17, 2008 5:47 PM

Well, I've found a way, I dont know if it is the right way to do it.

object _InsertValue = "Hello World";

_Document.ExecCommand("Paste", true, _InsertValue);

D3M1TR1US  Monday, March 17, 2008 5:55 PM

Well, I've found a way, I dont know if it is the right way to do it.

object _InsertValue = "Hello World";

_Document.ExecCommand("Paste", true, _InsertValue);

D3M1TR1US  Monday, March 17, 2008 5:55 PM

You can use google to search for other answers

Custom Search

More Threads

• compound controls: when I change the code of a child control, I need it to change in the parent control
• Alt-Tab: Don't Show Form That Cannot Get Focus
• populating fields on a form based on user selection from a gridview
• Help calling a windows form from a control which is docked in another form
• skinning ??
• Culture specific .dll's
• Sorting in listbox
• Printing Problem
• Encrypt/Decrypt Web.config settings
• Accessing overlapping forms in a mdi-app