By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,299 Members | 1,054 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,299 IT Pros & Developers. It's quick & easy.

Control know when moved

P: n/a
Is there any way for a control to know when its location moved? and OnEvents
or such?
Jul 25 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a
On Jul 25, 10:34 am, "Smokey Grindle" <nos...@nospam.comwrote:
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

Jul 25 '07 #2

P: n/a
Smokey Grindle wrote:
Is there any way for a control to know when its location moved? and OnEvents
or such?
The Move event fires.

--
Göran Andersson
_____
http://www.guffa.com
Jul 25 '07 #3

P: n/a
let me rephrase this... I know there is a locationchanged event, but what is
its OnEvent (overridable) method?

"Smokey Grindle" <no****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Is there any way for a control to know when its location moved? and
OnEvents or such?

Jul 25 '07 #4

P: n/a
Smokey Grindle wrote:
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.
Jul 25 '07 #5

P: n/a
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?

On Wed, 25 Jul 2007 10:41:19 -0400, "Smokey Grindle"
<no****@nospam.comwrote:
>let me rephrase this... I know there is a locationchanged event, but what is
its OnEvent (overridable) method?

"Smokey Grindle" <no****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Is there any way for a control to know when its location moved? and
OnEvents or such?
Jul 25 '07 #6

P: n/a
To add to this, it is also NOT already used anywhere in the class... checked
that a couple times already :(

"Smokey Grindle" <no****@nospam.comwrote in message
news:Ox*************@TK2MSFTNGP04.phx.gbl...
>I dont have one? this is all I can override... look at attached image...
and if I type it manually it tells me there is nothing that can be
overridden with that name / definition


Jul 25 '07 #7

P: n/a
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

"Smokey Grindle" <no****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Is there any way for a control to know when its location moved? and
OnEvents or such?

Jul 25 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.