By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,894 Members | 1,937 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,894 IT Pros & Developers. It's quick & easy.

SaveFileDialog issue

P: n/a
Hi,

I have posted this query more than once and i have not got any possible
answers, hints so that i can proceed further

I have a simple windows application in C# with a SaveFileDialog control
in it. The problem is when i display the SFD i see the all the files
displayed with complete path in

file name - combo box. i mean the files shld be displayed only without
the complete path like we see in the MS- word Application.

When the Save As button is clicked in MS-word, SFD is displayed and
when the combo box is clicked it displays the files but with ONE BIG
DIFFERENCE - it displays only the FILENAMES but without the COMPLETE
PATH..

Please can some one help me on this. pls post if my query is not
clear..

Thanks
JP

Sep 26 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
JP,

You have asked this a number of times, with no response, or an
unsatisfactory one (in your eyes). It would indicate that chances are there
isn't a good way of going about and doing it.

If you run Spy++ and look at the dialog that comes up, you will see that
it is a custom window class in Word, which means that they more than likely
implemented it themselves.

I would look into how you can hook the standard save file dialog. Look
at the GetSaveFileName API function and use the hooks provided there to do
what you are looking for.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"gopal" <go*********@gmail.comwrote in message
news:11*********************@i42g2000cwa.googlegro ups.com...
Hi,

I have posted this query more than once and i have not got any possible
answers, hints so that i can proceed further

I have a simple windows application in C# with a SaveFileDialog control
in it. The problem is when i display the SFD i see the all the files
displayed with complete path in

file name - combo box. i mean the files shld be displayed only without
the complete path like we see in the MS- word Application.

When the Save As button is clicked in MS-word, SFD is displayed and
when the combo box is clicked it displays the files but with ONE BIG
DIFFERENCE - it displays only the FILENAMES but without the COMPLETE
PATH..

Please can some one help me on this. pls post if my query is not
clear..

Thanks
JP

Sep 26 '06 #2

P: n/a
iwould definitely look into this.. thnaks a lot..
Nicholas Paldino [.NET/C# MVP] wrote:
JP,

You have asked this a number of times, with no response, or an
unsatisfactory one (in your eyes). It would indicate that chances are there
isn't a good way of going about and doing it.

If you run Spy++ and look at the dialog that comes up, you will see that
it is a custom window class in Word, which means that they more than likely
implemented it themselves.

I would look into how you can hook the standard save file dialog. Look
at the GetSaveFileName API function and use the hooks provided there to do
what you are looking for.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"gopal" <go*********@gmail.comwrote in message
news:11*********************@i42g2000cwa.googlegro ups.com...
Hi,

I have posted this query more than once and i have not got any possible
answers, hints so that i can proceed further

I have a simple windows application in C# with a SaveFileDialog control
in it. The problem is when i display the SFD i see the all the files
displayed with complete path in

file name - combo box. i mean the files shld be displayed only without
the complete path like we see in the MS- word Application.

When the Save As button is clicked in MS-word, SFD is displayed and
when the combo box is clicked it displays the files but with ONE BIG
DIFFERENCE - it displays only the FILENAMES but without the COMPLETE
PATH..

Please can some one help me on this. pls post if my query is not
clear..

Thanks
JP
Sep 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.