Inheriting From FileDialog

  • Thread starter Thread starter Michael C#
  • Start date Start date
M

Michael C#

Does anyone know of any sample code for inheriting from the FileDialog or
CommonDialog classes? I need to create a customized OpenFileDialog with
some additional combo boxes on it.

Thanks
 
I see that FileDialog is sealed... Are there other options to implement a
custom OpenFileDialog by inherting from existing classes? CommonDialog or
OpenFileDialog itself maybe? I get the feeling I'm going to end up just
re-creating a Windows Form from scratch to do this...

Thanks,
Michael C#
 
There's no in-built support in .Net to customize your OpenFileDialog. But
you can use the Native APIs "GetOpenFileName" to display a custom file open
dialog based on a Template that you pass.

-vJ
 
Interesting. I actually want to display file info from another source,
apart from the local file system. I'll probably just end up re-inventing
the wheel for this project.

Thanks,
Michael C
 
Back
Top