J
Jonas
Hi!
I have built two very similar composite controls that consists of a number
of textboxes each.
In the PreRender-event I have the following code which I use to dynamically
set the TabIndex on the textboxes so that they get right in the flow of the
parent page.
Dim ctl As Control
For Each ctl In CType(sender, cmPerson).Controls
If TypeOf ctl Is TextBox Then
CType(ctl, TextBox).TabIndex += _tabIndexControl
End If
Next
One of my composite controls works just fine, when the parent page loads, I
set the _tabIndexControl value via a property and the code above is
executed. But on my other control, which has the same code, just different
textboxes and layout, the code do not find the textboxes in the Controls
collection.
Any tips?
TIA
Jonas
I have built two very similar composite controls that consists of a number
of textboxes each.
In the PreRender-event I have the following code which I use to dynamically
set the TabIndex on the textboxes so that they get right in the flow of the
parent page.
Dim ctl As Control
For Each ctl In CType(sender, cmPerson).Controls
If TypeOf ctl Is TextBox Then
CType(ctl, TextBox).TabIndex += _tabIndexControl
End If
Next
One of my composite controls works just fine, when the parent page loads, I
set the _tabIndexControl value via a property and the code above is
executed. But on my other control, which has the same code, just different
textboxes and layout, the code do not find the textboxes in the Controls
collection.
Any tips?
TIA
Jonas