Solved

GetElementByID

Posted on 2009-05-15
9
438 Views
Last Modified: 2013-11-27
Say if there was a textbox on a webpage and I had the ID to it, what code would I use to get the contens of it then put in into a RichTextBox, in VB.net  the ID is resultsBox if you needed it.

0
Comment
Question by:CyberDemon1337
  • 5
  • 3
9 Comments
 
LVL 4

Expert Comment

by:rdoran0928
ID: 24398284
       RichTextBox1.Text = SimpleTextBox1.Text
0
 

Author Comment

by:CyberDemon1337
ID: 24398409
What? How about I put the contens of the RichTextBox to string then do RichTextBox1.Text = stringname

What would the code be for that?
0
 
LVL 4

Expert Comment

by:rdoran0928
ID: 24398465
I thought you just wanted to put the contents of a regular text box into a rich text box.  If that is the case, the assignmenet I showed would suffice.  Are you trying to do something different?  Please give more details.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 2

Expert Comment

by:whatisittellme
ID: 24398491
If I understand you right, is this what you want ?

Dim Str As String = RichTextBox1.Text.ToString
SimpleTextBox1.Text = Str

0
 

Author Comment

by:CyberDemon1337
ID: 24398532
I wanted to get the contens of a textbox on a webpage (The ID is resultsBox) then I want to put it into a RichTextBox in my app. So I would get the element by ID from the webbrowser of resultsBox then I dunno what I'd do next to put it to string then put it into my richtextbox1
0
 
LVL 4

Expert Comment

by:rdoran0928
ID: 24399211
getElementById is a Javascript (client-side) function.  Are you writing client-side and/or server-side code?
0
 

Author Comment

by:CyberDemon1337
ID: 24401777
I am making a program in Microsoft Visual Basic with a WebBrowser and I want to get the text in a textbox in the webpage then put it into my RichTextBox1
0
 

Author Comment

by:CyberDemon1337
ID: 24401814
Put the points up to 300
0
 

Accepted Solution

by:
CyberDemon1337 earned 0 total points
ID: 24401816
About the above, no I didn't don't have enough points.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question