Results 1 to 2 of 2

Thread: SHowOpen

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2002
    Location
    Ohio
    Posts
    70

    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?


  2. #2
    Lively Member Harvester's Avatar
    Join Date
    May 2002
    Location
    God's Country
    Posts
    124

    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
  •  



Click Here to Expand Forum to Full Width