Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

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
[212 byte] By [John] at [2007-11-10 0:20:35]
# 1 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 Sjgren (MCP) - mattiass @ hem.passagen.se
VB+ http://hem.spray.se/mattias.sjogren/
Please send questions/replies to the newsgroups
Mattias Sjgren at 2007-11-11 20:03:17 >
# 2 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 Sjgren (MCP) - mattiass @ hem.passagen.se
VB+ http://hem.spray.se/mattias.sjogren/
Please send questions/replies to the newsgroups
Mattias Sjgren at 2007-11-11 20:04:17 >
# 3 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)
Paul Clement at 2007-11-11 20:05:26 >
# 4 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)
Paul Clement at 2007-11-11 20:06:20 >