Useing menu bar in VB to call CommonDialog.ShowOpen
I'm going to use Mmenu Bar in a VB6.0 application to open file.
CommomDialog1.ShowOpen brings Open Window. But how to retrive a file name,
by clicking on 'OK', in the Open Window and pass it to VB code to open it?
Does CMDLG32.OCX have any properties to return a file name?
Thanks in advance,
Dajing
[350 byte] By [
Dajing Hu] at [2007-11-10 0:20:15]

# 1 Re: Useing menu bar in VB to call CommonDialog.ShowOpen
>Does CMDLG32.OCX have any properties to return a file name?
Dajing,
Yes it does - it would be useless if it didn't. It's called FileName
(big surprise huh?!).
BTW, this has nothing to do with API.
Mattias
__________________________________________________
Mattias Sjgren (MCP) - mattiass @ hem.passagen.se
VB+ http://hem.spray.se/mattias.sjogren/
Please send questions/replies to the newsgroups
# 2 Re: Useing menu bar in VB to call CommonDialog.ShowOpen
>Does CMDLG32.OCX have any properties to return a file name?
Dajing,
Yes it does - it would be useless if it didn't. It's called FileName
(big surprise huh?!).
BTW, this has nothing to do with API.
Mattias
__________________________________________________
Mattias Sjgren (MCP) - mattiass @ hem.passagen.se
VB+ http://hem.spray.se/mattias.sjogren/
Please send questions/replies to the newsgroups