Results 1 to 2 of 2

Thread: Using The Common Dialog Controls

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Post

    I just want to retrieve a filename, I can do the rest from there, but how can I open the "Open" screen, or the "Save" screen?


    Thanks

    Steve

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Code:
    Private Sub cmdOpen_Click()
        On Error Goto Cancelled
        With CommonDialog1
            .CancelError = True
            .ShowOpen
            Caption = .FileName
        End With
    Cancelled:
    End Sub
    
    Private Sub cmdSave_Click()
        On Error Goto Cancelled
        With CommonDialog1
            .CancelError = True
            .ShowSave
            Caption = .FileName
        End With
    Cancelled:
    End Sub
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Certified AllExperts Expert

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