Hello,
I am a beginner and i have a simple question. How can i run code in VB.NET line by line?
Here is an example :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = "Start"
Dim URL As String
Dim Info As String
Dim srcWebpage As New System.Net.WebClient
URL = "http://www.google.com"
Info = srcWebpage.DownloadString(URL)
srcWebpage.Dispose()
RichTextBox1.Text = Info
End Sub
How can i execute the first line(TextBox1.Text = "Start") first, and only after it is executed completely continue with other lines....
When i click the button the text "Start" will be displayed in TextBox1 only after the whole event has finished, after the webpage is loaded in RichTextBox1. What i need is the text in TextBox1 displayed before it starts downloading the webpage in RichTextBox1.
Thanks,
I am a beginner and i have a simple question. How can i run code in VB.NET line by line?
Here is an example :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = "Start"
Dim URL As String
Dim Info As String
Dim srcWebpage As New System.Net.WebClient
URL = "http://www.google.com"
Info = srcWebpage.DownloadString(URL)
srcWebpage.Dispose()
RichTextBox1.Text = Info
End Sub
How can i execute the first line(TextBox1.Text = "Start") first, and only after it is executed completely continue with other lines....
When i click the button the text "Start" will be displayed in TextBox1 only after the whole event has finished, after the webpage is loaded in RichTextBox1. What i need is the text in TextBox1 displayed before it starts downloading the webpage in RichTextBox1.
Thanks,