Extending OpenFileDialog to add a picture preview?

  • Thread starter Michael A. Covington
  • Start date
M

Michael A. Covington

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?
 
S

Sean Chambers

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
 
M

Michael A. Covington

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.
 
M

Michael Nemtsev

Hello Michael,

Look at this one http://www.codeproject.com/cs/miscctrl/FileDialogExtender.asp

MC> How easy is it to extend OpenFileDialog so that when a file is
MC> selected (clicked), my code will be called to extract some
MC> information 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 Nietzsch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top