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

Extending OpenFileDialog to add a picture preview?

P: n/a
How easy is it to extend OpenFileDialog so that when a file is selected
(clicked), my code will be called to extract some information from the file
and display a picture?
Sep 23 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You could use the FileOk event of the OFD control. Then read the OFD
..FileName property. That would give you a path.

I'm sure there is a dozen other ways to do it, but this is how I would
probably accomplish that.

hope it helps!

Sean
Michael A. Covington wrote:
How easy is it to extend OpenFileDialog so that when a file is selected
(clicked), my code will be called to extract some information from the file
and display a picture?
Sep 23 '06 #2

P: n/a
But FileOk occurs when the user clicks Open or Save, at which time he's
through with the dialog altogether. I would like to call up the preview
picture when the user clicks once on any file.

"Sean Chambers" <dk****@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
You could use the FileOk event of the OFD control. Then read the OFD
.FileName property. That would give you a path.

I'm sure there is a dozen other ways to do it, but this is how I would
probably accomplish that.

hope it helps!

Sean
Michael A. Covington wrote:
>How easy is it to extend OpenFileDialog so that when a file is selected
(clicked), my code will be called to extract some information from the
file
and display a picture?

Sep 23 '06 #3

P: n/a
Hello Michael,

Look at this one http://www.codeproject.com/cs/miscct...ogExtender.asp

MCHow easy is it to extend OpenFileDialog so that when a file is
MCselected (clicked), my code will be called to extract some
MCinformation from the file and display a picture?
MC>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Sep 24 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.