Windows Develop Bookmark and Share   
 index > Windows Forms Designer > How can I change default naming rules in Visual studio?
 

How can I change default naming rules in Visual studio?

I have 2 questions:
1. Usualy when I place control on the form, IDE gives default name for this control (for example label1). I want that VS will give default name like 1Lable, 2Label etc..How can I do this?
2. When I select needed control for field in DataSource window and place field into form, it appears specified cintrol binded to selected field and label control from default control set with name of the appropriate field. Is it possible to chnge behaviour of VS to authomatically cretate inherited label control in this case instead of defaul label control creation.

Thank you in advance
  • Moved byNancy ShaoMSFTMonday, September 07, 2009 3:48 AMTo get better support (From:Visual Studio Extensibility)
  •  
Valentine Radchuk  Saturday, September 05, 2009 8:11 PM
Hi Valentine,

I am moving this thread from Base "Visual Studio Extensibility" forum to the "Windows Forms Designer" forum, since the issue is related to Windows Forms. There are Windows Forms Designer experts in the "Windows Forms Designer" forum.

Thanks,
Nancy


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Nancy Shao  Monday, September 07, 2009 3:47 AM
you just set ID of the Label to your own name so that it will be easy to access in code editor.
Ganapatisb  Monday, September 07, 2009 4:53 AM

You can use google to search for other answers

Custom Search

More Threads

• "Feature packed" datepicker control released!
• Component with DataTables. How to impliment?
• Problem with deserialization of resources
• How to tell if image chosen in ListView control?
• Custom control and specific 'DockArea', like GroupBox
• How do I create fun-style windows
• How to enable scrolling custom form designer using the middle mouse button?
• Tab Control
• Simple System.Drawing or GDI+ question: I want to make my form's corners rounded
• VS2008 have problem with Generic Forms