Button in User Control does not click in main form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • P Chacks
    New Member
    • Mar 2011
    • 1

    Button in User Control does not click in main form

    Hi,

    I'm fairly new to C#. I have a user control as part of another project and I'm loading it in a form in my current project. There is a Data Grid with some values in it. There is also a button on the user control which has an on_click event associated with it.

    I am able to load the values into the data grid in the user control on the form using an on_load event of the user control. I have to use these values and do something on the click of the button, but the button click does not do anything. It does not call the on_click function of button. Why would this happen? I have been trying to get information on this online but haven't been able to.

    Please help!
Working...