Raising a button click

  • Thread starter Thread starter Max André Bündchen
  • Start date Start date
M

Max André Bündchen

A simple question: how to shoot a button click event from a method in a form
(assuming many events for a single button click)?
 
Max André Bündchen said:
A simple question: how to shoot a button click event from a method in a
form (assuming many events for a single button click)?

Call the button's 'PerformClick' method.
 
Better yet, if you want code to execute via a Button Click, but also want
that code to run when other actions are performed, the code should not be
*part of* the Button Click Event Handler, but should be *called by* the
Button Click Event Handler. Unless these other operations necessitate a
programmatic click of a Button, a Click is not necessary.

--
HTH,

Kevin Spencer
Microsoft MVP
Ministry of Software Development
http://unclechutney.blogspot.com

I just flew in from Chicago with
a man with a wooden leg named Smith
who shot an elephant in my pajamas.
So I bit him.
 
Back
Top