Tak det har hjulpet mig en hel del, men jeg kan stadigt
ikke få det til at passe sammen

her giver jeg en nøjagtig kopi af hvordan jeg har forsøgt at sætte det op!!!
Const OPENFILENAME As String = "c:\\test.txt"
Const SAVEFILENAME As String = "c:\\test2.text"
Dim txtValue As String
/...
.../
Private Sub cmdadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdadd.Click
cbocontacts.Items.Add(txtNAME2.Text)
lstlist.Items.Add((txtNAME2.Text) & (",") & (txtPPHONE2.Text) & (",") & (txtSPHONE2.Text))
txtNAME2.Clear()
txtPPHONE2.Clear()
txtSPHONE2.Clear()
'---------------------------------------------------------
Dim sr As New System.IO.StreamReader(OPENFILENAME)
Dim line As String
Dim contents As String
Dim finished As Boolean = False
contents = txtNAME1.Text
While Not finished
line = sr.ReadLine()
If line Is Nothing Then
finished = True
Else
contents += line
End If
End While
txtValue = contents
sr.Close()
End Sub
Private Sub cmdEXIT_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtNAME1.Click
Dim sw As New System.IO.StreamWriter(SAVEFILENAME)
sw.WriteLine(txtValue)
sw.Close()
End
End Sub
hvis du kan hitte ud af det ville jeg blive meget glad!