A Revolution
From the Norm,
Towards Greatness
Home » » Visual Basic: Read/Load a Text From Online (URL)

Visual Basic: Read/Load a Text From Online (URL)

Written By Unknown on Tuesday, June 21, 2016 | 6:57 PM

Visual Basic: Read/Load a Text From Online (URL)

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. 





  1. Public Class Form1
  2.     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  3.         Dim LD As New Net.WebClient
  4.         Dim Stream_LD As String
  5.         Stream_LD = LD.DownloadString("YOUR-URL-LINK.txt")
  6.         Label1.Text = Stream_LD
  7.     End Sub

  8. End Class






SHARE

About Unknown

0 comments :

Post a Comment