Dear all,
I have a tabcontrol with 2 tabpages and 3 textboxes in each tabpage.
Now i am trying to retrive the visible property from the controls in order to execute some more commands according to the result of the visibility (true,false):
int i,j;
for(i=0;i<TabControl1.TabPages.Count;i++)
{
for(j=0;j<TabControl.TabPages.Controls.Count;j++)
{
if(TabControl.TabPages.Controls[j].Visible==true)
{
// execute some commands
}
else
{
// execute other command
// The code always is entering here
// but i can see the objects with my eyes
}
}
}
Many thanks
I have a tabcontrol with 2 tabpages and 3 textboxes in each tabpage.
Now i am trying to retrive the visible property from the controls in order to execute some more commands according to the result of the visibility (true,false):
int i,j;
for(i=0;i<TabControl1.TabPages.Count;i++)
{
for(j=0;j<TabControl.TabPages.Controls.Count;j++)
{
if(TabControl.TabPages.Controls[j].Visible==true)
{
// execute some commands
}
else
{
// execute other command
// The code always is entering here
// but i can see the objects with my eyes
}
}
}
Many thanks