You're going to have to tell us what you are trying to do. I rarely write code to manipulate objects since it can never run in completed applications so I probably don't even have anything relevant. The only time I might write it is if I have some massive change I need to make to lots of objects and I think I can do it better by writing code than by using the GUI.
If you are using code to create controls, populate their "Name" property with a value that makes sense to you and once it is saved, you can use the Name property to reference the control.