CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 1999
    Posts
    1

    Code for Open Dialog Box



    I am looking for the code for the open common dialog box. I want to create my own open dialog box and I am wondering where I can get this code. I am not sure how to code the drive, directory, and file boxes.

    Thank you

    Gary

  2. #2
    Join Date
    Aug 1999
    Location
    Blue Springs, MO
    Posts
    43

    Re: Code for Open Dialog Box

    Are you looking to use the existing Open Dialog box or create one of your own?


  3. #3
    Guest

    Re: Code for Open Dialog Box

    try this before you decide to make your own common dialog box
    first- right click on the toolbar, and form the pop-up menu select components
    then- when the list of controls installed on your system appears, check the "Microsoft Common Dialog Control - 5.0" option
    now - click Ok
    Place one on your form
    Place a button on your form, and in the click event type,
    commondialog1.ShowOpen
    if you want the path for a file
    dim filename as string
    commondialog1.showOpen
    filename = Commondialog1.FileName

    some others you can try are:
    ShowSave
    ShowColor
    ShowFont
    ShowPrinter
    ShowHelp

    Good Luck!




  4. #4
    Join Date
    May 2000
    Posts
    21

    Re: Code for Open Dialog Box

    Gary,

    Check out this link, it goes to a program by Paul Mather at Planet Source code. You may find most if not all you need to know in the code download, if not just search "Common Dialog" and you'll find more to check out it's a big site. You'll find gem's of great price, and things you'll laugh at. Good and bad it's all there!

    http://www.planet-source-code.com/vb...txtCodeId=3592

    Hope this helps, it helped me.


    Jerome W. Norgren

    Using VB6, SP3, Pro



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

Featured