bandi
10-22-2009, 07:19 PM
Hi all,
I have created an owner-draw usercontrol with some extended functionality as a replacement for the standard vb option button. Everything is working as expected with the exception of how focus is passed between these controls.
When a group of standard option buttons are placed on a form and one is selected, hitting the tab key will skip the rest of the option buttons in the group and move onto the next control. I am wanting to simulate this functionality, but cant figure out how to go about it.
Currently, my user controls act as a group ok, but hitting the tab key passes focus to each control in the group in succession.
I thought of using the CanGetFocus or ForwardFocus properties for the none selected controls, but these properties are only available at authoring time, not run time. I also thought about disabling none selected controls, but then you lose mouse events and cant click on the control to select it.
Does anybody have any insights into how I can acheive this group type focus?
Thanks
Anthony
I have created an owner-draw usercontrol with some extended functionality as a replacement for the standard vb option button. Everything is working as expected with the exception of how focus is passed between these controls.
When a group of standard option buttons are placed on a form and one is selected, hitting the tab key will skip the rest of the option buttons in the group and move onto the next control. I am wanting to simulate this functionality, but cant figure out how to go about it.
Currently, my user controls act as a group ok, but hitting the tab key passes focus to each control in the group in succession.
I thought of using the CanGetFocus or ForwardFocus properties for the none selected controls, but these properties are only available at authoring time, not run time. I also thought about disabling none selected controls, but then you lose mouse events and cant click on the control to select it.
Does anybody have any insights into how I can acheive this group type focus?
Thanks
Anthony