> Is there any way for a control to know when its location moved? and OnEvents
> or such?
The Move event fires.

Signature
Göran Andersson
_____
http://www.guffa.com
> Is there any way for a control to know when its location moved? and OnEvents
> or such?
You mean the Move event?
Thanks,
Seth Rowe
let me rephrase this... I know there is a locationchanged event, but what is
its OnEvent (overridable) method?
> Is there any way for a control to know when its location moved? and
> OnEvents or such?
Phill W. - 25 Jul 2007 16:53 GMT
> let me rephrase this... I know there is a locationchanged event, but what is
> its OnEvent (overridable) method?
Just guessing from Our Friends in Redmond's usual convention ...
OnLocationChanged ?
HTH,
Phill W.
Jack Jackson - 25 Jul 2007 17:08 GMT
I'm confused. If you want the LocationChanged event, there is the
OnLocationChanged method. Normally you prepend the event name with
"On". Isn't that obvious?
>let me rephrase this... I know there is a locationchanged event, but what is
>its OnEvent (overridable) method?
>
>> Is there any way for a control to know when its location moved? and
>> OnEvents or such?
How about the Move event
Private Sub Button6_Move(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button6.Move
Console.WriteLine(Button6.Top.ToString)
End Sub
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button7.Click
Dim i As Integer = Button6.Top
i -= 10
Button6.Top = i
End Sub
> Is there any way for a control to know when its location moved? and
> OnEvents or such?