January 26th, 2010, 12:33 PM
C# - Removing old methods
I have a bunch of old methods that I don't want anymore. However, they were made by double clicking an object in Visual Studio.
Now, if I delete them, or even comment them out, Visual Studio gets angry because those methods don't exist anymore. Is there a way to get rid of these methods safely?
January 26th, 2010, 01:31 PM
Back in the Designer, in the Properties tab/window there's an Events view. Look for the lightning bolt.
Find the event you don't want for a control - probably for change or double click - and delete the value/method name.
(Or you can open up the designer file and delete the relevant code, but that's a bit risky: the Designer doesn't like it when people question His Decisions...)
Comments on this post
January 26th, 2010, 04:09 PM