Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 14:40

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB] Display InnerText from Website in TextBox

Discussion on [VB] Display InnerText from Website in TextBox within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
MARCI1111's Avatar
 
elite*gold: 7
Join Date: Jul 2009
Posts: 1,131
Received Thanks: 722
Exclamation [VB] Display InnerText from Website in TextBox

Hello guys,
i want to display the text from a website in a TextBox. I use the webbrowser from Visual Basic Studio, so it should be possible. The Problem is, that i just want to display a specific part of text.

Here is the example from the website:
PHP Code:
<!doctype HTML>
</
html>
<
headMy Website </head>

<
body>
<
span style="color:blue">5</span>
<
span style="color:blue">5</span>
<
span style="color:green"><b>10</b></span>
</
body>

</
html
I just want to display the "10" from the 3rd span element. So i need <span style="color:green"><b>10</b></span> but i just want to display the number 10 in my textbox...

Thanks & Greetings,
MARCI1111
MARCI1111 is offline  
Old 03/25/2015, 22:25   #2
 
Darkangel44's Avatar
 
elite*gold: 15
Join Date: Oct 2010
Posts: 182
Received Thanks: 38
Hey Marc,

try something like HtmlDocument:

With that, you only need to know how you wanna select the right span element. You can find it by index (in that case it's the third one), by attribute (e.g. "color:green") or by content (e.g. "<b>10</b>").

If you have further questions or need a example code (try it yourself first and google a bit) - just ask.


Grettings,
Darkangel44
Darkangel44 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Textbox mit .txt vergleichen
08/25/2013 - .NET Languages - 1 Replies
Hi Freunde und zwar habe ich folgendes Problem: Ich habe eine textdatei die eine reihe von Bergrüßungen enthält. Und zwar möchte ich prüfen ob z.B. Textbox1.Text eine oder mehrere Bergrüßungen aus der Textdatei enthält Bsp Begrüßungen: hi hallo yo Text:
[C#] TextBox Aktualisieren
06/15/2013 - .NET Languages - 6 Replies
edit: hat sich erledigt.. sry
textbox splitten
03/13/2013 - General Coding - 1 Replies
moin, folgendes Problem: Ich habe eine Textbox und mit diesen Code habe ich schon die Maximalanzahl an zeichen eingestellt Dim zeichenanzahl As Integer = TextBox7.Text.Count If zeichenanzahl > 2 Then
TextBox und RichTextBox [VB]
06/06/2010 - .NET Languages - 7 Replies
Hi, Ich hab ein Problem und zwar...: Ich will das man in einer RichBox nicht schreiben kann und das wenn man den Text in der TB eingiebt da er erscheint in der RichBox aber dann wenn man einen anderen Text angibt das er dann nicht verschwindet.
Wie textbox in textdatei !?!
04/30/2010 - General Coding - 1 Replies
Hi comm, ICh habe das problem das ihc mir ein passwort gen coden will der mir die daten dich ich da in eine textbox eingebe in eine txt packt und speihert hier mal ein code schnipsel und das prob is das er das nciht macht und ich mir nicht erklären kann wie ich das problem löse sufu hat nichts gebracht und google gibt mir nur scheißhoffe ihr könnt mir helfen. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim fileno As...



All times are GMT +2. The time now is 14:40.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.