I have a user control that has a combobox and a button.
This control sits on a main form with other controls and has been created PROGRAMMATICALLY on this form.
When I click on the button a window displays and you can pick a client. Once a client is picked and upon closing the popup window the combobox is populated via the valuemember... This all works great.
Once the combobox populates, the focus sits on the button that was initially clicked on.
However if I use the following code inside the usercontrol:
it works. it moves to the next control on the parent....
My real problem is that this is Peculiar to the form "frmCreditorInvoicePayment
" where as this usercontrol will be used on other forms.......
How can I make this usercontrol generically move to the next control outside???
'Usercontrol created on the main form.
Dim thisUserControl As New uscClientSelect()
thisUserControl.Location = New Point(115, 15)
thisUserControl.TabIndex = 0