Transferring Focus to Multiple Buttons
-
Hi. We're having a little problem in allowing the user click/press any button from a group of buttons inside a panel. What we want is after clicking/pressing one button that is not one of the group of buttons, the user will be allowed to click/press any of the buttons in the panel. All the buttons inside the panel represent the alphabet that's why we want to do that. The button that will be clicked before doing that is a start button. So can anyone help us?
-
Hi. We're having a little problem in allowing the user click/press any button from a group of buttons inside a panel. What we want is after clicking/pressing one button that is not one of the group of buttons, the user will be allowed to click/press any of the buttons in the panel. All the buttons inside the panel represent the alphabet that's why we want to do that. The button that will be clicked before doing that is a start button. So can anyone help us?
So you start off with the buttons enabled property as False then when the start button is clicked you go through each control in Panel.Controls and if it is a button and not the start button set the enabled property to True. You may want to put the alphabet buttons in a groupbox to further segregate them from any other controls, in this case you go through the GroupBox.Controls collection instead.