How to use API for a filedialog


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: How to use API for a filedialog

  1. #1
    John Guest

    How to use API for a filedialog


    Hi!

    Can someone tell me how to create a filedialog that makes it possible to
    browse for a file to open....I guess there's a nice API for that, which skould
    I d how do I use it

    /Jonas

  2. #2
    Mattias Sjögren Guest

    Re: How to use API for a filedialog

    >Can someone tell me how to create a filedialog that makes it possible to
    >browse for a file to open....I guess there's a nice API for that, which skould
    >I d how do I use it


    Hej Jonas,

    The function you're looking for is GetOpenFileName.

    http://www.mvps.org/vbnet/code/comctl/fileopen.htm


    Mattias

    __________________________________________________
    Mattias Sjögren (MCP) - mattiass @ hem.passagen.se
    VB+ http://hem.spray.se/mattias.sjogren/
    Please send questions/replies to the newsgroups

  3. #3
    Mattias Sjögren Guest

    Re: How to use API for a filedialog

    >Can someone tell me how to create a filedialog that makes it possible to
    >browse for a file to open....I guess there's a nice API for that, which skould
    >I d how do I use it


    Hej Jonas,

    The function you're looking for is GetOpenFileName.

    http://www.mvps.org/vbnet/code/comctl/fileopen.htm


    Mattias

    __________________________________________________
    Mattias Sjögren (MCP) - mattiass @ hem.passagen.se
    VB+ http://hem.spray.se/mattias.sjogren/
    Please send questions/replies to the newsgroups

  4. #4
    Paul Clement Guest

    Re: How to use API for a filedialog

    On 22 Mar 2000 01:03:07 -0800, "John" <jonasjohansson70@hotmail.com> wrote:

    ¤
    ¤ Hi!
    ¤
    ¤ Can someone tell me how to create a filedialog that makes it possible to
    ¤ browse for a file to open....I guess there's a nice API for that, which skould
    ¤ I d how do I use it

    You can use either the Common Dialog control or, since you asked for code, the Common Dialog API:

    http://www.mvps.org/vbnet/code/comctl/fileopen.htm


    Paul ~~~ pclement@ameritech.net
    Microsoft MVP (Visual Basic)

  5. #5
    Paul Clement Guest

    Re: How to use API for a filedialog

    On 22 Mar 2000 01:03:07 -0800, "John" <jonasjohansson70@hotmail.com> wrote:

    ¤
    ¤ Hi!
    ¤
    ¤ Can someone tell me how to create a filedialog that makes it possible to
    ¤ browse for a file to open....I guess there's a nice API for that, which skould
    ¤ I d how do I use it

    You can use either the Common Dialog control or, since you asked for code, the Common Dialog API:

    http://www.mvps.org/vbnet/code/comctl/fileopen.htm


    Paul ~~~ pclement@ameritech.net
    Microsoft MVP (Visual Basic)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center