[Tutorial]External Notice
So, I'll teach you how to make a notice, which you can update anytime, without updating your program.
Above public class you'll need to write the following:
Under public class where you usually declare stuff:
Code:
#Region "Settings"
Const strNotice As String = "http://link-to-your/notice.txt"
#End Region
Using a richtextbox:
Code:
Sub LoadNotice()
Try
Dim request As HttpWebRequest = WebRequest.Create(strNotice)
Dim response As HttpWebResponse = request.GetResponse()
Dim reader As StreamReader = New StreamReader(response.GetResponseStream())
Richtextbox1.Text = reader.ReadToEnd()
response.Close()
reader.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
You might put this into form_load or on any button:
Just upload the .txt to your root/ftp w/e.
Try it out
Thank me if I helped you
