473,395 Members | 1,401 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,395 software developers and data experts.

How to grab text from web browser

I have 1 form (Form1). Within this form there is a Web Browser (webBrowser1), that automatically loads to a site. Keep this in mind for later.

I have a text box (TextBox1). When the web browser loads, I would like to grab text from a particular ID (I already know the ID of the element) and I would like it to be put into the textbox.

I have tried the below code but I get an error when I try to run it.
TextBox1.Text = webBrowser1.Document.GetElementById("ELEMENT_ID_HE RE").GetAttribute("value");
May 25 '10 #1
1 2127
nukefusion
221 Expert 100+
@evanc93
Hi evanc93,

It might be helpful to us if you can post details of the exact error message you are getting.
May 26 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mark Hahn | last post by:
I am using wxPython (wxWindows) and need a simple non-styled text control with an arbitrary image background. Since wx does not support transparent colored backgrounds on controls, I'm being...
5
by: Dawn | last post by:
I have a problem with my browser running Javascript. Using Netscape, I can run programs with Javascripts. Using IE, or if I open an HTML program with wordpad, the Javascript code will not...
6
by: Richard Hollenbeck | last post by:
I'd like a button on my main form to backup the database. How can I call up the Windows folder browser to prompt me for a filename and type (*.mdb) and folder to save in? I looked in my book and...
0
by: max reason | last post by:
I added the WebBrowser component to my toolbox, then placed one on a form with other .NET components. This much seems to have worked, but I do not understand how to control the sucker from within...
0
by: Igor | last post by:
I need to implement the following download functionality in the browser. When users request a certain operation from the web application, certain files are downloaded to their PCs, into a certain...
6
by: Justin F. | last post by:
In my app I want the users to be able to select a folder to do their work in. The FolderBrowserDialog is a great way to do this, but I don't want to have a dialog pop up every time they want to...
3
by: Francesc | last post by:
Hi, I'm new at this newsgroup and I want do ask some questions and opinions about this subject. I'm developing an application focused in a very specific task: clean and labelling text documents...
2
by: want2learnperl | last post by:
Perl Newbie here. I want to open a file that I have setup as a configuration file. After opening the file I was to assign parts of the words to variables. for example (configuration file...
0
by: tamik0 | last post by:
I need to declare the "DrawStringInBox" (in bold) but not sure how, any suggestions would be greatly appreciated: Protected Sub PrintPageTitles(ByVal ev As...
5
by: ALaurie10 | last post by:
Hi In my database, I use data that is imported XML data. One of the feilds in my table has text data defined with only two values -->"1" and "2". These are text values which have specific...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.