si2030
asked on
Handling events for controls within a programmatically added User Control
Hi Experts,
I have a user control that has a combobox in it called cbxClientLIst.
The user control is added to a group box on a form programmatically. (see Below).
I want to fill a cell in a datagridview with the details of the selected value once a user leaves the user control combobox... essentially manage an action.
How do I write a handler that fires when the user tabs off the combobox? ..so when they tab off I can take the contents of the combobox and add it to another control....
Kind Regards
Simon
I have a user control that has a combobox in it called cbxClientLIst.
The user control is added to a group box on a form programmatically. (see Below).
I want to fill a cell in a datagridview with the details of the selected value once a user leaves the user control combobox... essentially manage an action.
How do I write a handler that fires when the user tabs off the combobox? ..so when they tab off I can take the contents of the combobox and add it to another control....
Kind Regards
Simon
Me.grpInvoiceDetail.Controls.Add(thisUserControl)
thisUserControl.Location = New Point(339, 16)
thisUserControl.TabIndex = 0
thisUserControl.cbxClientList.Focus()
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER