Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Help with creating a custom designer
 

Help with creating a custom designer

Are there any good books or examples that describe how to create a custom designer INCLUDING wiring it up to a custom CodeDomSerializer to generate appropriate code in the InitializeComponent method of the designer control. The code will be added to a custom code editor in a similar way that Visual Studio adds it to a code behind module.

There seem to be numerous examples showing how to host a custom designer (which I can follow) but none show how to implement code behind generation.

I hope this makes sense. Any help would be appreciated.

Damien

DamienAnselmi  Friday, January 06, 2006 2:34 AM

Hi Damien,

 

For what its worth I believe the best method is to get stuck into a project of your own and when you get stuck start google' ing around. Experiment with all types of things and try and gain an understanding of what your doing. Look at other developers code as reference and try learn your own ‘flavourâ€? Have patience and most of all have fun!

 

Useful links:

http://msdn2.microsoft.com/en-us/library/c5z9s1h4.aspx

http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c80c.aspx

http://msdn2.microsoft.com/en-us/library/s92caa5w(en-us,VS.80).aspx

 

Useful Sites:

http://www.divil.co.uk/net/articles/

http://www.codeproject.com

http://www.gotdotnet.com/community/usersamples/

http://samples.gotdotnet.com/quickstart/howto/

 

Useful Book for Beginner:

Sams - .NET Windows Forms Custom Controls

 

I hope this helps.

 

Regards,

Eric Maroudas

 

emaroudas  Tuesday, January 10, 2006 8:52 PM

more specific to what you were looking for here is an interesting artical:

http://msdn.microsoft.com/msdnmag/issues/05/12/CodeGeneration/default.aspx

Google Search "Code Generation .Net Custom Controls"

Book:

http://www.amazon.com/gp/product/0672323338/102-4704728-3230552?v=glance&n=283155 

Google Search "Code Generation .Net Custom Controls Books"

 

Rgrds,

Eric Maroudas

emaroudas  Tuesday, January 10, 2006 9:01 PM

Came along a good example of this in the MSDN 2003 lib.

Search for on google or MSDN for: Customizing Code Generation in the .Net Framework Visual Designers

emaroudas  Saturday, January 14, 2006 9:28 AM

You can use google to search for other answers

Custom Search

More Threads

• Obtain the control beneath the cursor
• create a System.Drawing.Image from an icon file (not embbeded) on run-time
• Barcord Scan
• how to host different controls in the same column in DataGridView control
• Transparency Issue
• AutoScaleMode Property does not exist
• Form designer does not handle Generic List properties of custom controls... ???
• Outlook Address Card View
• Need tips on creating a professional looking program.
• Adding custom designerverb (combobox)