VB.NET Windows User Control

G

Guest

How can I add routines to a user control that I can call from the parent
form? I have a user control that contains 6 buttons, Close, Delete, Cancel,
Save, Edit, and Add. I want to have control over the click events of these
buttons from the parent control. I would also like to keep the default click
event from the user control intact. Is this possible?
 
C

Chris Dunaway

How can I add routines to a user control that I can call from the parent
form? I have a user control that contains 6 buttons, Close, Delete, Cancel,
Save, Edit, and Add. I want to have control over the click events of these
buttons from the parent control. I would also like to keep the default click
event from the user control intact. Is this possible?

If the buttons are standard buttons, you can call their PerformClick
method.


--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top