On Oct 2, 1:52 pm, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.comwrote:
Quote:
Hi,
>
You will have to post some code to see how you are creating your tabs.
You are not creating the controls when you show the tab are you?
Hi Ignacio,
the controls are all created at design time. The only thing that
happens at run time is the addition of the page and the selection of
the active tab. When one clicks on 'next' the code invoked is the
following:
private void OpenNext()
{
TabPage currentOne = mainTab.SelectedTab;
switch (current.Text)
{
case "Step A":
if (!mainTab.TabPages.Contains(PageB))
mainTab.TabPages.Add(PageB);
mainTab.SelectedTab = PageB;
break;
case "Step B":
if (!mainTab.TabPages.Contains(PageC))
mainTab.TabPages.Add(PageC);
mainTab.SelectedTab = PageC;
break;
//...
}
}
I tried to select a tab that was already added and it doesn't change
the speed.
Further investigation shows that this flickering effect is no longer
there and the pages load instantly if I remove the background image
that is loaded for each tab. Is there a way to have it loaded very
fast?
Thanks.
-- Ruby