Triggering a Control Event

  • Thread starter Thread starter Jeff Tolman
  • Start date Start date
J

Jeff Tolman

This is probably a silly question, but is it possible to trigger a button
click event from inside the Form_Load event? I know I can just call the
Button_Click routine, but I'm not exactly sure how to setup the parameters.

Thanks in advance!

Jeff Tolman
 
Tim,

Tim Wilson said:
When I call this method from within a Form Load event handler, or the
OnLoad
override, it fires as expected.

You are right. 'PerformClick' doesn't raise the event if the control's
'Visible' property is set to false or the control is disabled, but it will
fire if the control's 'Visible' property is set to 'True' and the form isn't
yet shown.
 
Back
Top