Try it out =D
I don't see any problem using a .txt from a website.
I don't see any problem using a .txt from a website.
Imports System.Net
Public Class Form1
dim str as String
#Region "Settings"
Const strNotice As String = "http://.txt"
#End Region
Sub LoadNotice()
Try
Dim request As HttpWebRequest = WebRequest.Create(strNotice)
Dim response As HttpWebResponse = request.GetResponse()
Dim reader As StreamReader = New StreamReader(response.GetResponseStream())
str = reader.ReadToEnd()
response.Close()
reader.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Private Sub cmdload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdload.Click
loadnotice()
Try
If ListBox1.SelectedIndex = ListBox1.Items.Count - 1 Then
Dim x1 As Integer = str.IndexOf(ListBox1.SelectedItem, 0) + ListBox1.SelectedItem.ToString.Length + 1
Dim MJ As String = Mid(str, x1).Trim
TextBox1.Text = MJ
Else
Dim x1 As Integer = str.IndexOf(ListBox1.SelectedItem, 0) + ListBox1.SelectedItem.ToString.Length + 1
Dim x2 As Integer = str.IndexOf(ListBox1.Items(ListBox1.SelectedIndex + 1), x1) + 1
Dim MJ As String = Mid(str, x1, x2 - x1).Trim
TextBox1.Text = MJ
End If
Catch ex As Exception
End Sub
End Class

x where to select a User -> the textbox will fill in the current posts of this member. Possible to make this for different people, meaning not just for the admin? So other people would connect to the db? Is this insecure?
042DA3D4 60000000 043B58B8 380000FF





If chkstate = CheckState.Checked Then
'You can check whehter the current code is already saved or not in the File. If not then add other wise not to avoid duplicates... It's optional and depends on you :)
Dim c As String = Nothing
If My.Computer.FileSystem.FileExists(newFile) Then
c = My.Computer.FileSystem.ReadAllText(newFile)
End If
If Not c Is Nothing Then
If Not c.Contains(MJ) Then
My.Computer.FileSystem.WriteAllText(newFile, MJ & vbCrLf, True)
End If
Else
My.Computer.FileSystem.WriteAllText(newFile, MJ & vbCrLf, True)
End If





