Hi, I'm Henokh Setiabudi form Indonesia. I have a little problem in project. I write program in C# windows application. I confuse on tab control use:? How to create tab control which accomodate same component ex.label and textbox programatically? (I want fill tabPage1 and next tabPage with same component)
Thanks for helping.
How to tab control programatically?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Zaw Thet Aung8 pointsPosted Jan 23, 2007, 9:48 PM EST
Button myButton = new Button();
myButton.Top = 100;
myButton.Left = 100;
TabControl1.TabPages[0].Controls.Add(myButton);
You can change the tabpage index to add to different tab pages.
I hope this help.