Wrapped up my project except cosmetics and I'm finding myself spending hours on the tab indexes. Given I don't understand what I'm seeing but if set the tab order via the tab order view or set the tab indexes using the property controls in containers (group boxes) just don't seem to cooperate. So out of desparation I set the tabindex property in the form load. Even that is being ignored.
I searched around and the tutorials I see show nice simple forms with no group boxes. I have quite a few group boxes with group boxes in group boxes. So:
1. If anyone knows of a good tutorial on setting tab indexes where group boxes are in use I could use it.
2. I don't understand why this in the form load doesn't set the order:
cboAcuity.TabIndex = 0
cboCoordinator.TabIndex = 1
cboConsortium.TabIndex = 2
txtLastName.TabIndex = 3
txtFirstName.TabIndex = 4
chkUseDateRange.TabIndex = 5
dtpStart.TabIndex = 6
dtpEnd.TabIndex = 7
chkOpen.TabIndex = 8
chkClosed.TabIndex = 9
chkBoth.TabIndex = 10
btnPolicies.TabIndex = 11
btnClaims.TabIndex = 12
txtSearchLimit.TabIndex = 13
btnSearch.TabIndex = 14
btnOK.TabIndex = 15
btnCancel.TabIndex = 16
I even set up a loop through all the control and set the indexes to 99 and then ran the code above thinking there was a conflict. That didn't help.
I searched around and the tutorials I see show nice simple forms with no group boxes. I have quite a few group boxes with group boxes in group boxes. So:
1. If anyone knows of a good tutorial on setting tab indexes where group boxes are in use I could use it.
2. I don't understand why this in the form load doesn't set the order:
cboAcuity.TabIndex = 0
cboCoordinator.TabIndex = 1
cboConsortium.TabIndex = 2
txtLastName.TabIndex = 3
txtFirstName.TabIndex = 4
chkUseDateRange.TabIndex = 5
dtpStart.TabIndex = 6
dtpEnd.TabIndex = 7
chkOpen.TabIndex = 8
chkClosed.TabIndex = 9
chkBoth.TabIndex = 10
btnPolicies.TabIndex = 11
btnClaims.TabIndex = 12
txtSearchLimit.TabIndex = 13
btnSearch.TabIndex = 14
btnOK.TabIndex = 15
btnCancel.TabIndex = 16
I even set up a loop through all the control and set the indexes to 99 and then ran the code above thinking there was a conflict. That didn't help.