Is there anyway to make my custom dialog form support Design-time?

F

fairycat

I've made custom MessageBox derived from System.Windows.Forms.Form. Now
I want to make this supports Design time but never succeed yet. Is
there any way I can do this?? Does designer tool box only support
controls that derived from System.Windows.Forms.Control?? If then, I
want to make this Non-Visual control like OpenDialogBox. Is this
possible? Any idea will be appreciated.
 
P

Peter Foot [MVP]

you can create a class derived for System.ComponentModel.Component for it
to be available in the designer like the OpenFileDialog.
For example create a wrapper class which exposes a Show method which calls
the ShowDialog method of your form derived class.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top