C
CM
I'm learning VB6 from a book. The following code is
supposed to open a simple text file I created - putting
the text into my VB text box.
Private Sub cmdOpen_Click()
CommonDialog1.ShowOpen
If CommonDialog1.FileName <> "" Then Text1.Text =
CommonDialog1.FileName
End Sub
Instead, the path and file name to the text file is
placed in my text box. Does anyone understand why this
doesn't work as described? I even copied and pasted the
author's code directly from an accompanying CD, and the
results are the same.
I appreciate anyone's help,
CM
supposed to open a simple text file I created - putting
the text into my VB text box.
Private Sub cmdOpen_Click()
CommonDialog1.ShowOpen
If CommonDialog1.FileName <> "" Then Text1.Text =
CommonDialog1.FileName
End Sub
Instead, the path and file name to the text file is
placed in my text box. Does anyone understand why this
doesn't work as described? I even copied and pasted the
author's code directly from an accompanying CD, and the
results are the same.
I appreciate anyone's help,
CM