|
-
Aug 13th, 2002, 08:52 PM
#1
Thread Starter
Lively Member
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?
-
Aug 13th, 2002, 09:40 PM
#2
Lively Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|