View Single Post
Old 10-18-2004, 01:36 AM   #1 (permalink)
sureshkumar_kc
Registered User
 
sureshkumar_kc's Avatar
 
Join Date: Sep 2004
Posts: 12
sureshkumar_kc is on a distinguished road
Customize the SaveFileDialog

In C#, I am trying to create a windows control library using FileDialog.

public class UserControl1 : System.Windows.Forms.FileDialog
{

}

When I doing this I am getting the following error .

does not implement inherited abstract member 'System.Windows.Forms.FileDialog.RunFileDialog(Sys tem.Windows.Forms.NativeMethods.OPENFILENAME_I)'

But I could not noticed this RunFileDialog member in FileDialog member list.
Can you help me create sub class of the FileDialog

i.e....

I want to add a ComboBox to the SaveFileDialog, The SaveFileDialog class is sealed, and the documentation declares that its impossible to inherit from the FileDialog either . Is there a way around, or should I write a whole new form?
sureshkumar_kc is offline   Reply With Quote