Link to home
Start Free TrialLog in
Avatar of si2030
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
Me.grpInvoiceDetail.Controls.Add(thisUserControl)
        thisUserControl.Location = New Point(339, 16)
        thisUserControl.TabIndex = 0
        thisUserControl.cbxClientList.Focus()

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of bhmahler
bhmahler
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of si2030
si2030

ASKER

Thanks.. now have that working.