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
 

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

Similar Threads

newbie ques openfiledialog 9
Inheriting CommonDialog 1
STAThread vs non STAThread framework 15
mso.dll for filedialog 2
FileDialog 1
about ListView 2
About dialog 3
IFileOpenDialog in C# 2

Back
Top