0
votes

My co-worker created a Qt widget under Linux which he wrapped into an ActiveX control just so I can use it in my Win application UI. I registered and added that ActiveX control in my Visual Studio toolbox and added onto my win form.

Everything is fine, but when launching my form and clicking TAB it passes the focus to the ActiveX control and then to other controls on the win form however the TAB doesn't go into the ActiveX control to do tab-stop within the ActiveX control, which itself consists of some other controls.

How, can I make the tab-stop to happen within the ActiveX control so I can tab from control to control within the ActiveX control as well? Is there any known way?

1
What happens to keystrokes is negotiated between the AxHost wrapper and the control. You need to look at what the control's IOleInPlaceActiveObject::TranslateAccelerator() implementation function does, presumably it says "all your base are belong to us" regardless of the key. - Hans Passant

1 Answers

0
votes

If you dont want a button or some element on your form to be effected by pressing TAB just add this.MyButton.TabStop = false; to your Designer of that specific form. All it does is disable (in this case "MyButton") to be selected by pressing TAB. I hope this fixes your problem.