runtime problem
-
hi i've a form with buttons at the left and tabpages of information at the right of the form.. my problem is, how can i load my form without the tabcontrol at runtime? i juz want to show what's available at the left of the form at runtime. only after pressing the buttons then the right of my form (tabpages) will be shown.. thanks
-
hi i've a form with buttons at the left and tabpages of information at the right of the form.. my problem is, how can i load my form without the tabcontrol at runtime? i juz want to show what's available at the left of the form at runtime. only after pressing the buttons then the right of my form (tabpages) will be shown.. thanks
Hi! Unfortunately,
TabPage
s don't have aVisible
property, so you can either make the wholeTabControl
invisible or remove all unwantedTabPage
s from theTabPages
collection ofTabControl
. You can also addTabPage
s to theTabControl
at runtime when a menu item is selected. Regards, mav -
hi i've a form with buttons at the left and tabpages of information at the right of the form.. my problem is, how can i load my form without the tabcontrol at runtime? i juz want to show what's available at the left of the form at runtime. only after pressing the buttons then the right of my form (tabpages) will be shown.. thanks
you can make it invisible and set it visible when you need them but if you need to load them at run time you can do this remove the tab from InitializeComponent and write the method that initialize it when you need call it when you need to load the tab
-
Hi! Unfortunately,
TabPage
s don't have aVisible
property, so you can either make the wholeTabControl
invisible or remove all unwantedTabPage
s from theTabPages
collection ofTabControl
. You can also addTabPage
s to theTabControl
at runtime when a menu item is selected. Regards, mavwhat do you want to hide at runtime tab control or tab page if you need to hide tab page like mav.northwind said
-
hi i've a form with buttons at the left and tabpages of information at the right of the form.. my problem is, how can i load my form without the tabcontrol at runtime? i juz want to show what's available at the left of the form at runtime. only after pressing the buttons then the right of my form (tabpages) will be shown.. thanks
this code sample load control at run time Button b=new Button(); b.Name="b1"; b.Text="Text"; b.Location=new Point(25,25); //add to form this.Controls.Add(b);
-
what do you want to hide at runtime tab control or tab page if you need to hide tab page like mav.northwind said
-
hi at runtime i want tabcontrol to be invisible.. only after i click on some buttons then the tabpage will show.. (i made it to be a particular button will call a particular tab page) thanks =)
//to make tabcontrol invisible tabControl.Visible=false; //to select particular tabpage tabControl.SelectedTab=tabPage2;