ncw
asked on
TabStrips and setting properties of control arrays
I am using a tabstrip in VB4 32bit with an array of picture boxes. On form load I want to set the properties of controls in the picture boxes, eg:
TabStrip1.Tabs(0).picframe .opt1.valu e = True
but I get an error message which says:
"Index out of bounds"
Can you help?
TabStrip1.Tabs(0).picframe
but I get an error message which says:
"Index out of bounds"
Can you help?
ASKER
I realise the index in the tabstrip control's properties starts at 1, but I have seen reference to 'Tabs(0)' in connection with the tabstrip in a help file.
Anyway, I've solved the problem. I was trying to reference a control in a picturebox array on a tab strip. It appears that I do not need to include any reference to the tab strip or picturebox, but can instead reference it as:
FormName.ControlName.Prope rty - as normal
Anyway, I've solved the problem. I was trying to reference a control in a picturebox array on a tab strip. It appears that I do not need to include any reference to the tab strip or picturebox, but can instead reference it as:
FormName.ControlName.Prope
Good Deal...
ASKER
This question is answered. Perhaps someone could explain when the 'TABS(n)' function should be used.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try:
TabStrip1.Tabs(1).picframe