While debugging in VS 2010, my code gives no error but on the output screen it shows the output of the other code file in the project.Please help.

Please elaborate, don't understand it very well.
Do you have many projects in your solution?

send your code
if you have errors in your code VS runs last error less program that you are talking about

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.