OK, ppl2pass, I got sometime and here's the code you need:
Create a button. Double click it and add the following code:
[php] Dim str As String = My.Computer.FileSystem.ReadAllText("D:\ddd.txt")
If chklist.SelectedIndex = chklist.Items.Count - 1 Then
Dim x1 As Integer = Str.IndexOf(chklist.SelectedItem, 0) + chklist.SelectedItem.ToString.Length + 1
Dim MJ As String = Mid(Str, x1).Trim
Dim NewMJ As String = ""
NewMJ = TextBox1.Text
str = str.Replace(MJ, NewMJ)
My.Computer.FileSystem.WriteAllText("D:\ddd.txt", str, False)
Else
Dim x1 As Integer = str.IndexOf(chklist.SelectedItem, 0) + chklist.SelectedItem.ToString.Length + 1
Dim x2 As Integer = str.IndexOf(chklist.Items(chklist.SelectedIndex + 1), x1) + 1
Dim MJ As String = Mid(str, x1, x2 - x1).Trim
Dim NewMJ As String = ""
NewMJ = TextBox1.Text
str = str.Replace(MJ, NewMJ)
My.Computer.FileSystem.WriteAllText("D:\ddd.txt", str, False)
End If
[/php]
Working: When you have a selected item and you made any changes to the textbox and then press the button, the changes will be saved.
Tested and working perfectly fine !!
I hope this is the same as required

And congrats for having a custom database
Regards