Page 1 of 1

Form Events

Posted: Fri Aug 07, 2009 12:43 pm
by ConvertFromOldNGs
by Michael Patricks >> Thu, 11 Nov 2004 8:51:23 GMT

Hi

Does anyone know what the order for events are on a Form? Specifically, when focus from one control moves to another by a mouse click.

Thanks

Danny Sheehan

Re: Form Events

Posted: Fri Aug 07, 2009 12:43 pm
by ConvertFromOldNGs
by rob >> Sun, 14 Nov 2004 21:35:14 GMT

Danny,

I put some write statements in the event methods of two textboxes on the same form (write method.name)
A mouse click on textbox2 resulted in events firing in the following order.

textBox1_mouseMove (multiple)
textBox1_mouseLeave
textBox2_mouseEnter
textBox2_mouseMove (multiple)
textBox2_mouseDown
textBox1_lostFocus
textBox2_gotFocus
textBox2_paint
textBox1_paint
textBox2_mouseUp
textBox2_click
textBox2_mouseMove (multiple)
textBox2_mouseLeave
textBox2_paint
textBox2_lostFocus

Cheers,
Robert