CommonDialog is a very specific base class that was designed to act as a common base class for dialogs that are built into Windows. It is not an appropriate base class for your own component. Simply derive from Component instead.
A simple example:
using System;
using System.ComponentModel;
using System.Windows.Forms;
class MyComponent : Component {
public bool ShowDialog() {
using (var dlg = new WindowsFormsApplication1.Form2()) {
if (dlg.ShowDialog() == DialogResult.OK) {
// Retrieve properties
//...
return true;
}
else return false;
}
}
// Add your own properties here
//...
}