TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
leosco
NA
13
0
Tabcontrol controls gone when new tab added
Sep 27 2010 8:03 AM
Hi, I'm making a tabcontrol that programatically adds a textbox to each tab. The following code I used works, but the problem with it is that every time a new tab page is created, the textbox is missing from the previous tab pages. Why and how can I fix that?
TextBox tb = new TextBox();
TabPage Tab = new TabPage();
tb.Dock = DockStyle.Fill;
Tabs.TabPages.Add("Untitled.asm");
Tabs.TabPages[Tabs.TabCount - 1].Controls.Add(tb);
Tabs.SelectedIndex = Tabs.TabCount - 1;
Reply
Answers (
1
)
Best technology encrypted communication over the internet?
HigherLower game keeps giving "Proficiat"