copy and paste into webbrowser

  • Thread starter Thread starter Young
  • Start date Start date
Y

Young

Hi!

I am writing a program to insert text into a textbox on webbrowser.
Please let me know if you can help me.

Using Visual Studio 2005(Visual Basic)
I have a form with many textboxes on left side and webbrowser1 on right
side. I will need to copy and paste that are in the form to the
textboxes in webbrowser. I can put my cursor and put my cursor active
in the textbox in browser. How can I put textbox1.text into currently
active location.

Here is how I set my cursor.

SetCursorPos(950, 285)
Mouse_Event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
Mouse_Event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)

Thanks,
Young.
 
Young,

The webbrowser is an Interop to Internet Explorer.

You can do everything the same as you can do with Internet Explorer. Which
means that you have to reach the document in Internet Explorer. For that is
the MSHTML class. The opposite from a fine class to use especially in VB.Net

Have a look for that very extended class on MSDN.

http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/hosting.asp

I hope this helps a little bit,

Cor
 
Hi!

I have many fields that I need to insert into the form in a webbrowser.
I would like to do this automatically if possible. Only way I found so
far is using a third party software that records my keystrocks and
replay when asked. My wish is to press a button that will move all data
at once into the webbrowser.

I am new to programming and wasn't sure if your suggestion was correct
one.

thanks,
Young.
 
Back
Top