Group groups become unavailable with TAB after pressing a button

I have a form in which there are two group groups (and other controls, as well as group groups that cause problems), a SAVE button that saves the form data in the database, and a NEW FORM button that resets the form (for example, txtName.clear(); rbCash.checked = false) Group boxes have several switches and have a tab index.

Now the user must first press the "NEW FORM" button to activate the form. User can move controls using TAB. Then the user presses the SAVE button to save the form.

Now the user can navigate through group mailboxes using TAB only before he presses the "SAVE" button. After he presses the β€œSAVE” button and then the β€œNEW FORM” button and tries to move through the controls using TAB, everything gets focus, except for group and radio objects inside it.

any suggestions why you should run into this problem?

oh .. one more thing. All form controls (including group ones) are inside a very large parent group box, which is disabled when the "SAVE" button is pressed and turned on again when the user clicks the "NEW FORM" button. When the application starts, the parent group package is disabled. Pressing the "NEW FORM" button allows you to enable this parent group package and all children within it.

help me please.

+3
source share
1 answer

You must be sure that the boxes are

TabStop = true

If you are programming in Visual Studio, the tool under View-> TabOrder may also be useful (see here )

0
source

All Articles