I have just started VB programming, and I got a book to help me, it gives me lessons on how to do things...

One of the programs it is helping me make is a word process. Its just a simple one using buttons and a text box. It told me to put a CommonDialog box into it as well.

The problem is, in the Open button the code they asked me to put in is this:

Private Sub cmdOpen_Click()

CommonDialog1.ShowOpen
If CommonDialog1.FileName <> "" Then Text1.Text = CommonDialog1.FileName

End Sub

When i tried it, it just put the filepath into the textbox, how do i fix this.

I am completely new to VB (started yesterday), and so I really would appreciate any help
Thanx
Diablo_2097