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

  • Thread starter Thread starter fairycat
  • Start date Start date
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.
 
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
 
Back
Top