Welcome to another day of coding and loading something from a website url, because my last episode for CSharp covered "how to load an image from online into a picture-box." Today we are taking it to Visual Basic and learning how to instead, load/read a text from online your lable, textbook and etc.
What will you need?
- Label
- Button
To learn more about how to setup and also program this script, watch my entertaining video (hopefully it's entertaining) and get the step, by step tutorial for this. Otherwise as always, you can skip and grab the code.
- Public Class Form1
- Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
- Dim LD As New Net.WebClient
- Dim Stream_LD As String
- Stream_LD = LD.DownloadString("YOUR-URL-LINK.txt")
- Label1.Text = Stream_LD
- End Sub
- End Class
0 comments :
Post a Comment