Hi to all,
I would like to do a simple thing with a tabcontrol but i can understand how.
I have a tabcontrol with 2 tabpages and i would like to disable the second tabpage before the user fill some data on the first the point is that i can't find Enabled or Locked or ReadOnly Property.
This is my code
if(txtContract.text=="")
{
tabdata.TabPages[1].Enabled ????=false
// How can i disable the tabpage[1]
// in order the user can not press the tabpage button
}
I have a thought to scan all the controls of the tabpage[1] and disable it one by one but i am wondering if there is a smarter way.
Many thanks
Ta
I would like to do a simple thing with a tabcontrol but i can understand how.
I have a tabcontrol with 2 tabpages and i would like to disable the second tabpage before the user fill some data on the first the point is that i can't find Enabled or Locked or ReadOnly Property.
This is my code
if(txtContract.text=="")
{
tabdata.TabPages[1].Enabled ????=false
// How can i disable the tabpage[1]
// in order the user can not press the tabpage button
}
I have a thought to scan all the controls of the tabpage[1] and disable it one by one but i am wondering if there is a smarter way.
Many thanks
Ta