Quantcast
Viewing all articles
Browse latest Browse all 12583

How do i access the click event of button on custom user control?

hi friends,

I have create a customer user control (standard c# custom user control) and add three buttons to it, button1, button2 button3. then I have added this custom control to a win form.

What I need to do is, when I click button1, button2, button3 it should print button1/button2 /button3 was clicked to a textbox (text box is not a custom user control). the question I have is, How do I access the button_Click event of each button, from the windows form? so I could print button names to the textbox

thanks


I use Visual studio 2012 Ultimate and SQL server 2008 developer edition!



Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>