Re: Tab order in a GroupBox
You are going to want to think of the groupboxes tab index and the object tab indexes as two different levels.
The Groupboxes are higher priority than the objects.
You want to set the tab index of your first groupbox to 0.
Then set your next groupbox to 1 and so on.
Then in your first groupbox you want to set the tab index of the objects.
Set your first one to 0 and then number them accordingly.
Then in your second groupbox set your objects tab index like you did the first groupbox starting with 0 and so on.
The way it will look at it is it will go to the first groupbox, go through all of its items, then go to the second groupbox and go through its objects and so on.
Good Luck.
Re: Tab order in a GroupBox
hrmmm... that makes sense, but the problem I am having is that for this app (which simply calculates time between two user entered times) the time entry boxes are NOT part of the group boxes that contain the am and pm radio buttons.
If I get the time tonight when I get hoem, I will take a screen shot or two of the window to show what it looks like...
But in an nutshell, it goes like this from left to right:
StartHoursTextBox StartMinutesTextBox StartSecondsTextBox Groupbox1(ambutton pmbutton)
EndHoursTextBox End MinutesTextBox StartSecondsTextBox Groupbox2(ambutton pmbutton)
CalculateButton ClearBoxesButton ExitButton
the tab order is correct for what this should do (i.e. the radio buttons come after the hours, minutes and seconds) but are you saying then that I should change the group box and radio buttons from being tabs 4, 4.0 and 4.1 (which is hwat VB.NET assigns them to something like 4, 5, 6 instead?
And that being the case, with radio buttons, in code, if I want to give focus to a radio button shouldnt Me.RadioButton.Focus() work??? Of course, I could be completely off base there...
Thanks for the help!