Handling events for controls within a programmatically added User Control

Posted on 2009-02-17
Last Modified: 2012-08-13
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? when they tab off I can take the contents of the combobox and add it to another control....

Kind Regards

        thisUserControl.Location = New Point(339, 16)

        thisUserControl.TabIndex = 0


Open in new window

Question by:si2030
    LVL 8

    Accepted Solution

    you can use AddHandler to handle events from a control

    Author Closing Comment

    Thanks.. now have that working.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
    Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now