Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Custom control newbie needs help.
 

Custom control newbie needs help.

Can someone please point me to a good article/tutorial on how to build design-time programming into my custom control?

I am building a custom gridviewcontrol that includes a contextmenustrip for formatting.  The control works great, BUT my custom properties don't initially load the design-time-set properties when it runs.

Changing the properties after the initial load works fine, but the design time settings are ignored unless I store the result in a native property of the base class.

Any help would be grealy appreciated.

Sincerely,
Glen Wolinsky
GDW0316  Friday, September 02, 2005 7:02 PM
Hi Glen,

The two articles written by Michael Weinhardt and Chris Sells helped me a lot when I was learning how to make my control design-time friendly; maybe you could try these two articles too:

First part:
http://msdn.microsoft.com/msdnmag/issues/03/04/Design-TimeControls/default.aspx

Second part:
http://msdn.microsoft.com/msdnmag/issues/03/05/Design-TimeControls/default.aspx


Good luck,

-chris
Chris Vega  Monday, September 05, 2005 1:47 AM
Hi Glen,

The two articles written by Michael Weinhardt and Chris Sells helped me a lot when I was learning how to make my control design-time friendly; maybe you could try these two articles too:

First part:
http://msdn.microsoft.com/msdnmag/issues/03/04/Design-TimeControls/default.aspx

Second part:
http://msdn.microsoft.com/msdnmag/issues/03/05/Design-TimeControls/default.aspx


Good luck,

-chris
Chris Vega  Monday, September 05, 2005 1:47 AM
Chris,

Thanks for the info. 

Sincerely,
Glen

GDW0316  Tuesday, September 06, 2005 1:12 PM

You can use google to search for other answers

Custom Search

More Threads

• How do I work with Windows Forms (using C++) and Directx9?
• A newbie Please help
• Hiding property value in property grid.
• ToolStripRenderer
• How do I Open a new form from a button click event?
• can no longer open forms in the designer
• Controls, Particularly User Controls, disappearing or Being Resized on Build
• Need to do a context Menu on the design surface
• Changed event
• I can't find the AutoSize in the Properties