I am using c# in Windows Visual Studio 2010. I had to remove several controls on a form in order to insert two SplitContainers. The event code for these controls was left intact. After getting the two SplitContainers set up, I added the removed controls, one at a time. I renamed them and set them up just as they were. When I checked the the “Event” I saw that none of the event items had been recognized. Is there an easy way to re-associate the controls with the event code?
Thanks in advance,
Bob
There is. You’ll see code like this in the
.Designer.csfiles if you created them with the designer and there’s no reason you can’t do this in your own code manually.If I interpreted your question incorrectly above, you may have meant that you removed them within the designer. If that’s the case, when you see the event in the properties window, you can click the drop-down menu and select from a list of existing methods that match the appropriate signature for the event.