-
SHowOpen
Hi.. i am using the showopen in the commondialog control ...i have had no problems opening and selecting the file i need but i cannot figure out how to get the file i selected to open in the text box of the form? i have tried to use the commondialog1.filename to get it to open but it doesnt work...what am i missing here?
:confused:
-
FileName
After the showOpen method the CommonDialog object should have the fileName in its FileName property provided the user selected one. Here is some code:
Private Sub Form_Load()
dlg.ShowOpen
MsgBox dlg.FileName
End Sub