By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

Inheriting CommonDialog

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* "Simon" <si***@ssm.com> scripsit:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.