Ciao,
mi occorre il codice vb per aprire un file...
se scrivo:
Private Sub open_Click()
On Error GoTo a
CommonDialog1.DialogTitle = "Open file '*.crp'..."
CommonDialog1.CancelError = False
CommonDialog1.Filter = "Crypted file (*.crp)|*.crp"
CommonDialog1.ShowOpen
Openme
Exit Sub
a:
Exit Sub
End Sub
E openme è:
Private Sub Openme()
Open CommonDialog1.FileName For Input As #1
Input #1, xxx
txt1.Text = xxx
Close #1
End Sub
.
Così mi apre solamente la prima riga del documento!
Cosa devo aggiungere e dove???
:master: X :master: X :master: