954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Using multiple .cs files and a tabbed progarm

Hi,

My C# Skill level : Beginner
Using WPF

I'm working on a Visual C# Program in Visual Studio 2008 Pro.
The program has 4 tabs and there are couple of things same in each and also will perform the same action.

Like a Title box and clear form button and so.

Now since i can't give same label to 2 items the way i see i have to give all the items a unique name and make a bloody long code that will process them out.

I do plan on using functions that will let me reuse the code rather then all the hassle.

But can i make a .cs file for each tab, add their data in it and then link it to the xaml.cs file so it grabs all the code.

Please advise.

Thank you!

Evil Genius
Newbie Poster
11 posts since Nov 2008
Reputation Points: 10
Solved Threads: 0
 

I don't think your work is [b]wpf/b] related. Please take a look at this article - http://www.c-sharpcorner.com/UploadFile/prathore/TabControl01292009003152AM/TabControl.aspx

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You