Inheriting CommonDialog

S

Simon

Does anyone have the definitive snippet of code for how to inherit from
CommonDialog?
I want to add an extra control into the OpenFileDialog. I know you cannot
inherit from this or from FileDialog, but that you have to inherit from
CommonDialog and override RunDialog and Reset. However, I don't know what to
put into RunDialog or Reset, and the IDE also comes up with an error about
it cannot create an instance of the component.

Thanks,

Simon
 
H

Herfried K. Wagner [MVP]

* "Simon said:
Does anyone have the definitive snippet of code for how to inherit from
CommonDialog?
I want to add an extra control into the OpenFileDialog. I know you cannot
inherit from this or from FileDialog, but that you have to inherit from
CommonDialog and override RunDialog and Reset. However, I don't know what to

That's not as easy and would require dialog hooking or dialog templates
to add the additional controls. I feel sorry, I don't have any .NET
sample on how to do that.
 

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