mathieu_cupryk
asked on
disabling and enabling tabs in a tag control.
I have four tabs see image attached.
1. On load of the form I disable three of them using:
this.MainTabControl.TabPag es.RemoveA t(1); // Update invisible until a row is selected or create button is clicked.
this.MainTabControl.TabPag es.RemoveA t(1); // Error/Warning invisible until Load is completed.
this.MainTabControl.TabPag es.RemoveA t(1); // Compare invisible until compare button is pressed.
So now I am left with one tab which is the SelectPriceListTab
Now if the user presses the create button then I want to enable the second tab button
this.MainTabControl.TabPag es.Add(Cre ateUpdateP riceListTa b);
this.MainTabControl.Select Tab(1);
So if I am in the selecttab disable all three tabs otherwise if I click on the datagrid row or create button on the selecttab then
show createupdatetab.
see two images.
disabletab.jpg
selectprice.jpg
1. On load of the form I disable three of them using:
this.MainTabControl.TabPag
this.MainTabControl.TabPag
this.MainTabControl.TabPag
So now I am left with one tab which is the SelectPriceListTab
Now if the user presses the create button then I want to enable the second tab button
this.MainTabControl.TabPag
this.MainTabControl.Select
So if I am in the selecttab disable all three tabs otherwise if I click on the datagrid row or create button on the selecttab then
show createupdatetab.
see two images.
disabletab.jpg
selectprice.jpg
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
ii am stuck. I already did.
ASKER
private void MainTabControl_Selected(ob
{
if MainTabControl. is SelectPriceListTab /// =====> what should be the syntax here.
HideTabs();
}
private void HideTabs()
{
this.MainTabControl.TabPag
this.MainTabControl.TabPag
this.MainTabControl.TabPag
}