473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Inheriting CommonDialog

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
1 2253
* "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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Norbert Staiger | last post by:
Hi, is there a possibility to center the commondialog control on screnn? Thanks Norbert
0
by: Basil Fenix | last post by:
I use a commondialog control to open a file.It was working perfectly that is showing it in the center of the screen. I then added a toolbar and a imagelist. Now it shows it bottom left of screen.Is...
3
by: Joanny | last post by:
Hi, there, When I open a VB6 application on VB.net, it automatically upgrade to VB.net. But I got the error message said: "Upgrade failed: Exception occurred: The referenced components...
1
by: D Wigg | last post by:
Hello all, I'm using VB6.0 to write an application which prints a report. The problem I have occurs when I try to allow the user to select the number of copies and which pages to print. Using...
4
by: Michael C# | last post by:
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
2
by: Patrick Blackman | last post by:
I want to create my own custom common dialog derived from the base class"CommonDialog" to display my custom form any ideas how to accomplish this with an example. Thanks Patrick
3
by: Michael C# | last post by:
Anyone know of a good resource that details how to inherit from CommonDialog? Thanks.
25
by: yanivoliver | last post by:
Hey, I'm using the CommonDialog object to load a dialog which allows the user to select the files they want to upload. This solution works perfectly on computers that have some Visual Studio...
1
by: DMc | last post by:
Hi, I have been searching for tutorials and tips on how to create my own Dialog box using the CommonDialog abstract class, and I have not been able to find anything useful. Can anyone have any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.