BUG: ComboBox as the first control on an UserControl 
Author Message
 BUG: ComboBox as the first control on an UserControl

I have found that you can not SHIFT-TAB through a combobox on a usercontrol
if it is the first control on an usercontrol.  Focus stops at the combo and
will not go the the control in the tab order prior to the user control.  It
doesn't seem to be a problem is there is any other control that accepts
focus as the first control.  Focus passes right through the combo and all
other controls through the tab order.  Anybody have any ideas on how to get
around this?


Tue, 02 Aug 2005 23:22:19 GMT  
 BUG: ComboBox as the first control on an UserControl
Use:

AddHandler COmbobox1.KeyDown, AddressOf TabHandler

Private Sub TabHandler(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs)

If e.KeyCode = Keys.Tab Then

me.ProcessTabKey(Not e.Shift)

e.Handled = True

End If

End Sub


Quote:
> I have found that you can not SHIFT-TAB through a combobox on a
usercontrol
> if it is the first control on an usercontrol.  Focus stops at the combo
and
> will not go the the control in the tab order prior to the user control.
It
> doesn't seem to be a problem is there is any other control that accepts
> focus as the first control.  Focus passes right through the combo and all
> other controls through the tab order.  Anybody have any ideas on how to
get
> around this?



Tue, 02 Aug 2005 23:48:10 GMT  
 BUG: ComboBox as the first control on an UserControl
I've tried that.  It doesn't work either.  It appears to be a bug in the
usercontrol's implementation of processtabkey when a combobox has focus.
Another thing I have noticed is that the combobox of every instance of this
user control has focus when the form loads, thus I have 3 controls that look
like it has focus at the same time.  Anybody else has any ideas?

Thanks,
Charles


Quote:
> Use:

> AddHandler COmbobox1.KeyDown, AddressOf TabHandler

> Private Sub TabHandler(ByVal sender As Object, ByVal e As
> System.Windows.Forms.KeyEventArgs)

> If e.KeyCode = Keys.Tab Then

> me.ProcessTabKey(Not e.Shift)

> e.Handled = True

> End If

> End Sub



> > I have found that you can not SHIFT-TAB through a combobox on a
> usercontrol
> > if it is the first control on an usercontrol.  Focus stops at the combo
> and
> > will not go the the control in the tab order prior to the user control.
> It
> > doesn't seem to be a problem is there is any other control that accepts
> > focus as the first control.  Focus passes right through the combo and
all
> > other controls through the tab order.  Anybody have any ideas on how to
> get
> > around this?



Wed, 03 Aug 2005 00:28:13 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. UserControl re-initializing first control in control array

2. select a element by typing the first character in the Combobox control

3. select a element by typing the first character in the Combobox control

4. First Click In UserControl DataGrid Does Not Fire An Event

5. First Post (No public UserControl Detected)

6. Writing First OCX: How do I reference UserControl?

7. Parent UserControl's Properties in a UserControl (placed on another UserControl)

8. Add UserControl do a ComboBox dropdown portion

9. Help: Losing ComboBox Change event in UserControl OCX

10. datarepeater & combobox in usercontrol

11. How to preload combobox in UserControl?

12. Multi-Column ComboBox on a UserControl?

 

 
Powered by phpBB® Forum Software