ControlDesigner for a custom form (not a child control)

  • Thread starter Thread starter vmantrana
  • Start date Start date
V

vmantrana

Hi guys:

I have been learning about design-time support and I have question
about this. I have test how it works for my own controls and it did
great; however I tried to attach a ControlDesigner to my custom form
and it didnt work.
My question is, how can I attach a ControlDesigner to my custom form
(window form) so that I can extend the dessign time functioning of
this form.
 
Forms are a special case in design time. The form (Form1 or whatever)
seen at design time isn't actually an instance of that class, if it was,
it would crash the system as you were editing it because inevitably
parts of it would be unfinished.

For completed forms, such as the open file dialog or the colour picker,
these show up as components with properties, not as actual forms.

Perhaps you should consider this model being as how it's the only one
available to you.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Back
Top