473,408 Members | 1,744 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

copy and paste into webbrowser

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.

Oct 2 '06 #1
2 3640
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/de...ng/hosting.asp

I hope this helps a little bit,

Cor
"Young" <ui******@yahoo.comschreef in bericht
news:11**********************@b28g2000cwb.googlegr oups.com...
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.

Oct 3 '06 #2
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.
Cor Ligthert [MVP] wrote:
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/de...ng/hosting.asp

I hope this helps a little bit,

Cor
"Young" <ui******@yahoo.comschreef in bericht
news:11**********************@b28g2000cwb.googlegr oups.com...
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.
Oct 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Supra | last post by:
i am using webbrowser control using visual studio 20003. i am not getting any copy and paste working. Private Sub MenuItem24_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)...
4
by: Legendary Pansy | last post by:
I was checking out the 101 C# Samples, specifically Windows Forms - Use the Clipboard. I took a look at the code for a while, and I understand what the program is doing with the cut, copy, pasting...
3
by: Rachel Suddeth | last post by:
This may not be the right forum, but it's a problem I chiefly come across when trying to post here. When I do a copy/paste from VS, the text always looks really weird (and even if I'm in an...
3
by: Supra | last post by:
using webbrowser control. i am not getting thing to work with copy and paste, but select all work fine . for copy event Private Sub MenuItem24_Click(ByVal sender As System.Object, ByVal e As...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
17
by: Steve | last post by:
I'm trying to code cut, copy, and paste in vb 2005 so that when the user clicks on a toolbar button, the cut/copy/paste will work with whatever textbox the cursor is current located in (I have...
0
by: arindams | last post by:
I've a form where an webrowser contains a html file. I want to copy a selective portion of the html content and paste that content in an excel 2007 file where it will be pasted as a normal text (not...
5
by: phill86 | last post by:
Hi I have a main form that holds records for scheduled meetings, date time location etc... in that form i have a sub form that has a list of equipment resources that you can assign to the meeting in...
8
by: jh | last post by:
I'd like to copy/paste into a listbox during runtime. I can do this for a textbox but can't figure out how to accomplish this for a listbox. Any help? Thanks.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.