Ravi Kiran
July 23rd, 1999, 10:40 PM
Hi,
I am using MSForms command Button only because i want ForeColor for the btn and the VB btn doesn't let me set. (and going the subclassing way is too much trouble for too small a gain!)
The problem:
It looks like MSForms's btn always sets the Focus to the next control in the tab order, irrespective of i use tab or shift-tab. For shift-tab it should actually go back in tab order, right?
So what happens is if i have say a text box as the next tab element, and i keep presseing shift-tab the focus gets locked between these two controls. It keeps shifting back and forth only!! ( and not thru all the controls).
Has anybody else experienced this? Is there a work around? or am i seeing things:-)
It has another funny property of appearing depressed when double clicked!. To avoid this you have to set Cancel to true in the dbl click event handler. Funny you can't do this from Properties!
I am using MSForms command Button only because i want ForeColor for the btn and the VB btn doesn't let me set. (and going the subclassing way is too much trouble for too small a gain!)
The problem:
It looks like MSForms's btn always sets the Focus to the next control in the tab order, irrespective of i use tab or shift-tab. For shift-tab it should actually go back in tab order, right?
So what happens is if i have say a text box as the next tab element, and i keep presseing shift-tab the focus gets locked between these two controls. It keeps shifting back and forth only!! ( and not thru all the controls).
Has anybody else experienced this? Is there a work around? or am i seeing things:-)
It has another funny property of appearing depressed when double clicked!. To avoid this you have to set Cancel to true in the dbl click event handler. Funny you can't do this from Properties!