Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Windows Form Designer generated code
 

Windows Form Designer generated code

Hi!

I'm developing now someUserControl and have a question about Designer generated code. After some controlwas placed on some Form,Designer generates code which will be placed into the InitializeComponent()function. The question is How can I effect the code which will be generated by Designerafter the control droped onto the Form?

Thanks in advance,
Alexey

Alexey Nayda  Friday, November 24, 2006 9:03 AM
sorry for the wrong title (http://msdn2.microsoft.com/en-us/library/ms973818.aspx)
joeycalisay  Tuesday, November 28, 2006 2:43 PM
How can I effect? please elaborate more...
joeycalisay  Friday, November 24, 2006 12:11 PM

Sorry for my english! Perhaps I've wrote something incorrect.

The Designer puts intialization of some of the custom control properties into the InitializeComponent() function. How can I manage what properties could be added into the InitializeComponent() function after control droped onto container control surface and how could I manage the default values which will be assigned to properties?

Thanks, Alexey

Alexey Nayda  Friday, November 24, 2006 10:54 PM
the attributes under System.ComponentModel is your solution, attributes like DesignerSerializationVisibility, DefaultValue, etc. For more information, you can search for the article entitled "Controlled Code Generation" by Shawn Burke here at msdn
joeycalisay  Saturday, November 25, 2006 7:09 AM

I always thought I could find anything, but after continues searches I still have no result.

Would you be so kind and give me a link to that article?

Thanks in advance,
Alexey

Alexey Nayda  Monday, November 27, 2006 9:52 PM
sorry for the wrong title (http://msdn2.microsoft.com/en-us/library/ms973818.aspx)
joeycalisay  Tuesday, November 28, 2006 2:43 PM

Thank you!
This is it!

Kind ragards,
Alexey

Alexey Nayda  Friday, December 01, 2006 10:24 AM

You can use google to search for other answers

Custom Search

More Threads

• IDE Designer unable to display forms containing user controls
• Composite control components that are not clipped?
• Whidbey Designer
• CD Autorun - Want to create a button browser on my cd
• Groupbox question
• Height limit
• Is it possible to set a user control to be owner drawn?
• Load problem
• create timeline control in c#
• want a button be focused always !