| 2123 | | If _statuses.Tabs(tb.Text).AllCount - 1 > fidx Then |
| 2124 | | _curList.SelectedIndices.Add(fidx) |
| 2125 | | Else |
| 2126 | | _curList.SelectedIndices.Add(_statuses.Tabs(tb.Text).AllCount - 1) |
| | 2123 | If _statuses.Tabs(tb.Text).AllCount > 0 Then |
| | 2124 | If _statuses.Tabs(tb.Text).AllCount - 1 > fidx AndAlso fidx > -1 Then |
| | 2125 | _curList.SelectedIndices.Add(fidx) |
| | 2126 | Else |
| | 2127 | _curList.SelectedIndices.Add(_statuses.Tabs(tb.Text).AllCount - 1) |
| | 2128 | End If |
| | 2129 | If _curList.SelectedIndices.Count > 0 Then |
| | 2130 | _curList.EnsureVisible(_curList.SelectedIndices(0)) |
| | 2131 | _curList.FocusedItem = _curList.Items(_curList.SelectedIndices(0)) |
| | 2132 | End If |