In vb6 i had a program that i made to read a true or false statement on the website then i had vb6 check that statement. but now that im using vb.net i have no idea how to do that. any ideas thanks :D
Printable View
In vb6 i had a program that i made to read a true or false statement on the website then i had vb6 check that statement. but now that im using vb.net i have no idea how to do that. any ideas thanks :D
I have no clue what you mean by "read a true or false statement and then check the statement". If you're looking to download the HTML of a website, use the WebClient:
vb Code:
Dim Html As String Using client As New System.Net.WebClient Html = client.DownloadString("http://www.google.com") End Using
well here is how i had it set up from what i remember it was a few years ago.
i had
vb Code:
dim websitetext as sting 'connect to the website it reads the site if websitetext = true then do something end if
What do you really mean by "reads the site"?
Well the site set up had no html, it was just a word i set the program to read True or False from the website.
Well if there is no html in the file, only a word (True/False), then download it like i showed you and compare it:
vb Code:
If DownloadedWord = "True" Then 'Do something Else 'Do something else End If