Multiple panels and group boxes and tab order maintenance

I have a VB.NET application (2005) developed by my boss that uses more than 100 input and display controls (text fields, combinations, etc.), many of which are associated with labels. My boss asked me to set the order of the tabs, and then hold the key down so that the user can use the input to move the controls. I have 2 applications like this to work.

For the tab order, I could not use the View / TabOrder function, since there were so many blue little tabindex pop-ups that I did not see any controls on the click form. I tried to pop up the popup with some success, but it still didn't give me the tab that I wanted. The tab assistant that came with CodeSMART did not give me the result, which I also wanted so that I could use it.

The controls for this user control are distributed among many groups, which, in turn, are distributed among several splitcontainer panels. The 1st panel in the main separation container has 3 main group drawers, which are selected using the toolbar (which sets the visible group box and turns the rest into invisible ones.)

Example:

Private Sub ShowMainPanel()
    'Note: Panels are groupboxes
    Me.MaterialPanel.Visible = False
    Me.HaulPanel.Visible = False
    Me.MainPanel.Visible = True

End Sub

, 1 15 . , . ​​ true.

, MANUALLY tabindexes 0 2. 1- (mainpanel) tabindex , . , , , 0 25, () 26 48. , 0 Control.count-1 .

, ():

mainPanel = 0
  1st fields = 0.0
  2ndfield = 0.1
  3rd field = 0.2
  1st group = 0.3
    1st field in 1st grp1 = 0.3.0
    2nd field in 1st grp1 = 0.3.1
  2nd group = 0.4
    1st field in 1st grp2 = 0.4.0
    2nd field in 1st grp2 = 0.4.1
materialPanel = 1
  1st fields = 1.0
  2ndfield = 1.1
  3rd field = 1.2
  1st group = 1.3
    1st field in 1st grp1 = 1.3.0
    2nd field in 1st grp1 = 1.3.1
  2nd group = 1.4
    1st field in 1st grp2 = 1.4.0
    2nd field in 1st grp2 = 1.4.1

. , , 1.4.0 tabindex, 0 , 4 1 .

zorder Document Outline .

, , , , .

2 (materialPanel haulpanel), . . 2- (MaterialPanel HaulPanel). , UserTestContainer , 2- , .

, (MainPanel). .

3-4 . - , , , 15-20 .

- , ?

+3
1

, GroupBoxes , , .

KeyPreview? , . , , . , .Controls Groupbox/Panel , , .

0

Source: https://habr.com/ru/post/1712314/


All Articles