|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Extending OpenFileDialog to add a picture preview?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? 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: Show quoteHide quote > 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? 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. Show quoteHide quote "Sean Chambers" <dko***@gmail.com> wrote in message news:1159041268.812003.61140@b28g2000cwb.googlegroups.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? > 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 Nietzsche
problems typecast,find by function/member name and getting "managed reference"
Call click event via code? C# Is that true there are no Linked lists in .NET? Write access to 'get'-only public property from within a class - best practice? Registreing assembly/.NET DLLs, EXE SessionEnding Event stops Custom Sorting in DataGrid VS studio 2005 versus VS studio 2003 Internet Accessible? Delegate/Event HELL! |
|||||||||||||||||||||||