I need some help with a program im trying to make.
Im trying to make a personnel roster that is very flexible and customizable. I have a problems that I can't get around.
The personnel roster is handled with a tabcontrol, and i want to make it so that when you click a certain button you create a new tab. My problem is when you click the button you get just a new blank tab instead of the other one that has textboxes that hold info like names, birthdate, etc, etc, i want to now how i can make it so that when you click the button it copy's the other tab but leaves the textboxes blank so the user can enter info themselves, and also how to make it so i can click a button an it erases the tab that i name in the textbox the User names. You see i have a textbox and 2 buttons for creating and erasing tabs, the user enters the name of the new tab in the textbox and clicks the button "create new tab", and the user can enter a name of a tab in the textbox then click the "erase button" and the name of the tab that was entered gets erased. fairly easy huh,
this is the code i got down so far.
Private void btnAdd_Tab click(object sender Event Args e)
// adds a new tab to the tabcontrol
This code works but every time i try to write code that erases a tab
I draw a blank.
// removes a tab from the tabcontrol
This code doesn't work why i do not know.
I don't have a clue as to what code i should use to make it copy the
Info textboxes to the new tab. should i go to each textbox and copy the exact size and location of each textbox?
By the way Im using "visual C# 2008 express edition".
0 · ·