Inheriting from the Common Dialog Class

  • Thread starter Thread starter CaribSoft
  • Start date Start date
C

CaribSoft

I want to create my own common dialog to use in an application . How do I
show a custom dialog (form) in a class based on the common dialog class?
 
Hi CaribSoft,

Thank you for posting in the community!

Can you tell me what exactlly you want to do?

If you only want to show a customized modal dialog, I think the simplest
way is using Form.ShowDialog() to show a customized form.

Does this way meet your need? If it does not meet your need, please show me
the concern, thanks.


Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi CaribSoft

Does my reply make sense to you?

If you still have any concern, please feel free to feedback.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Not really, what I really want to do is to show my own form using the common
dialog class as the base class. For example I want to display an options
dialog having the same properties as the common dialog class, where do I put
the code to show my form using the common dialog class as my base class. Is
there some hook or a method to override etc. How is it done in the Save
dialog/Open file dialog and color dialog, they share a common base class but
have different dialogs which is what I want to achieve.
 
Hi CaribSoft,

Thanks very much for your feedback.

I see that your main requirement is you want to "having the same properties
as the common dialog class". But, I want to inform you that most properties
of the common dialog are only make sense for that 6 kinds of common dialog.

So what is your customized "option dialog" like? If it is just a normal
form, it makes no sense to have so many properties.

Also, do you just want to extend one of the 6 kinds of common dialog?
Please feel free to feedback. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi CaribSoft

Does my reply make sense to you?

Please feel free to feedback. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top