Quick'n'Dirty:
MsgBox((New System.Net.WebClient()).DownloadString("http://example.com/tip.txt") )
Better:
Using wc As New WebClient()
MessageBox.Show(wc.DownloadString("http://example.com/tip.txt"))
End Using
Question
How can a msgbox in vb pull a text from a txt file from a website and view it show it in a message box on a form. For example if there was a txt file at http://example.com/tip.txt how can i view that txt in a messagebox when activated in vb
msgbox(Show_txt_from_txt_file_from_website) ?
Im just doing this so im able to have this application a serverside application and i can change the txt of the message without having to update / publish the application again. Its kindof hard to explain what im trying to say but i hope someone understand my issue
Solution
Quick'n'Dirty:
MsgBox((New System.Net.WebClient()).DownloadString("http://example.com/tip.txt") )
Better:
Using wc As New WebClient()
MessageBox.Show(wc.DownloadString("http://example.com/tip.txt"))
End Using