Solved

dafsd

Posted on 2015-02-12
2
34 Views
Last Modified: 2015-02-13
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.  

Why ?

I want both buttons to be independent of each other.  Adding code for button 1 shouldn't appear in button 2's source code.
0
Comment
Question by:naseeam
2 Comments
 
LVL 20

Accepted Solution

by:
jmcg earned 500 total points
ID: 40606949
Are you expecting a separate source file for each button? Usually, there's just one source file per form and the code for each widget, button, etc will appear in that source file, regardless of which control you click on to visit the source file. Code that you add specific for a button should not be getting duplicated to the other button.

You want to post a code sample to show what you're seeing?
0
 

Author Closing Comment

by:naseeam
ID: 40607903
Thank you!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now