ControlDesigner for a custom form (not a child control)

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.
 
B

Bob Powell [MVP]

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.
 

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