Try using the event OnMouseUp to get the click location. OnClick can be
called when the user uses the KeyBoard and hence it's not always associated
with a mouse click co-ordinates
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
"benben" <be******@yahoo.com.au> wrote in message
news:uf**************@TK2MSFTNGP12.phx.gbl...
I have a form that overrides the OnClick method. The caller sends in an
EventArgs parameter but how can I extract the mouse coordinates from the
EventArgs???? I tried explicit convertion to MouseEventArgs but an
InvalidCastException is thrown.
I know the original OnClick method raises the Click event so it must be
able to somehow extract more information from the EventArg. Does anyone know
how it is achieved?
ben