
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?