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

Typing text into FreeTextBox using Webbrowser. HELP!

Trying to have webbrowser in VB6 open up a web page and fill out information automatically for me.

Having trouble getting text into a FreeTextBox. My code is:

WebBrowser1.Document.getelementByID("ctl1__ctl0_Ma in_Main_ComposeMessa ge1_FreeTextBoxMessage").InnerText = "It works!"

For some reason, it doesn't do anything. Can I put text into a FreeTextBox this way or am I coding it wrong?

Any help is greatly appreciated!
Mar 27 '07 #1
3 2494
ansumansahu
149 100+
Trying to have webbrowser in VB6 open up a web page and fill out information automatically for me.

Having trouble getting text into a FreeTextBox. My code is:

WebBrowser1.Document.getelementByID("ctl1__ctl0_Ma in_Main_ComposeMessa ge1_FreeTextBoxMessage").InnerText = "It works!"

For some reason, it doesn't do anything. Can I put text into a FreeTextBox this way or am I coding it wrong?

Any help is greatly appreciated!

Hi ,

Will this work out.

webBrowser.Document.Forms(0).NameOfField.Value = "Insert Your text"

thanks
ansuman sahu
Mar 27 '07 #2
Hi ,

Will this work out.

webBrowser.Document.Forms(0).NameOfField.Value = "Insert Your text"

thanks
ansuman sahu

Thanks for the help! Unfortunately, I tried it and got the same result. The blinking cursor dissapears when the command is run. Makes me think that I've got the wrong ID for the textbox. I'll keep trying using your method.

If anyone has any more ideas, please let me know. Thanks!
Mar 27 '07 #3
Hi ,

Will this work out.

webBrowser.Document.Forms(0).NameOfField.Value = "Insert Your text"

thanks
ansuman sahu

OK, I found the line of code that is responsible for the text in the FreeTextBox, but I can't understand why nothing is showing up with the code you gave me...

<div id="ctl1__ctl0_Main_Main_ComposeMessage1_FreeTextB oxMessage_htmlEditorArea" style="clear:both;display:none;padding-bottom:1px;">
<textarea id="ctl1__ctl0_Main_Main_ComposeMessage1_FreeTextB oxMessage" name="ctl1__ctl0_Main_Main_ComposeMessage1_FreeTex tBoxMessage" disabled="disabled" style="padding: 0px; width:500px; height: 350px;" class="ctl1__ctl0_Main_Main_ComposeMessage1_FreeTe xtBoxMessage_HtmlBox">Enter Text Here...</textarea>
</div>
Mar 27 '07 #4

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

Similar topics

4
by: Devhead | last post by:
i have an delphi application that i'm converting over into c#. one of the controls on one of my forms is a rich text control. the text is saved as html to an sql server db. is there a winform text...
6
by: Lloyd Dupont | last post by:
has any FreeTextBox user manage to get it to run with ASP.NET 2.0 ? I downloaded the latest version available (2.0.7) and I kept having problem: Exception Details:...
4
by: Tigrou | last post by:
Hello, In a Oracle Database i have text who are stored, this text are in RTF format, you can see an example below: {\rtf1\ansi\ansicpg1252\deff0\deflang1036{\fonttbl{\f0\froman\fcharset0...
2
by: Ankur Goyal | last post by:
Hi ! Please let me know... how a Rich text box can be used in ASP.net page..for text formatting and how it can be stored in database. Thanks Ankur Goyal
0
by: hans.bonefaas | last post by:
Hi, Anybody experience with Freetextbox and Forms Authentication? My Freetextbox works when I add the following to the web.config file: <pages pageBaseType="System.Web.UI.Page" />...
2
by: VB Programmer | last post by:
I have a gridview control with several data fields. When the user clicks 'edit' for the row I want the user to be able to edit a particular text field. Under that 'edit' textbox is a button. ...
5
by: miladhatam | last post by:
hi i 've downloaded the freetextbox control but it has error it works when is in my comuter but when i move it to another computer occurs error Could not load file or assembly 'FreeTextBox' or...
2
by: Tomo | last post by:
How to include freetextbox (www.freetextbox.com) in asp.net 2.0? My visual studio don't accept this tag: <FTB:FreeTextBox id="FreeTextBox1" runat="Server" />
11
by: Frank Rizzo | last post by:
I have a WebBrowser control on a .net 2.0 winforms app. I load up a page and want to get the selected entry of a dropdown. I can get the element: HtmlElement stationList =...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...

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.