Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
this is the HTML:
input type="text" readonly="ture" class="tp-input-text xl" id="data"

What I have tried:

Dim txt = GeckoWebBrowser1.Document.GetElementById("data").GetAttribute("value")
Me.Text = txt
Posted
Updated 27-Oct-18 6:55am
v2

This would be th C# version, shouldnt be too hard to trascode

C#
string TheValue = string.Empty;
GeckoInputElement txtbox = new GeckoInputElement(geckobrowser1.Document.GetElementById("data").DomObject);
TheValue = tbox.Value;
 
Share this answer
 
Thank you very much!!!

It works fine!!!

And here is the VB code...!!

Dim TheValue As String = ""
Dim txtbox = New GeckoInputElement(GeckoWebBrowser1.Document.GetElementById("data").DomObject)
TheValue = txtbox.Value
Me.Text = TheValue
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900