Posted on 2015-02-12
I'm writing my first C# program in Microsoft Visual C# 2010. From "New Project" window I select "Visual C#", Windows Forms Application. I create two buttons. When I double-click first button, it opens up source code window. I write one line of source code which also propagates to button 2's source code.
I want both buttons to be independent of each other. Adding code for button 1 shouldn't appear in button 2's source code.