473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Control know when moved

Is there any way for a control to know when its location moved? and OnEvents
or such?
Jul 25 '07 #1
7 968
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: yuval | last post by:
Hi DragDrop event is fired by the control accepting the drop If the drop is performed outside the controls I'm watching with events (like on another control/panel/window or outside my app) is...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
0
by: Steve Richter | last post by:
I have moved a code behind user control from my asp.net web application project into a separate assembly. Where I had registered the control this way: <%@ Register TagPrefix="ac"...
8
by: Tom | last post by:
Hi I am having problems working out if the mouse pointer is within the control bounds within the OnMouseMove method: Protected Overrides Sub OnMouseMove(ByVal e As MouseEventArgs) ...
9
by: Jaybuffet | last post by:
my aspx has something like this <asp:Repeater id="Repeater1" runat="server"> <ItemTemplate> <mycontrol:ctl id="ctlId" obj='<%# Container.DataItem %>' showItem="true"/> </ItemTemplate>...
0
by: te.richardson | last post by:
I want to write a screensaver that plays powerpoint presentations. So I have a form with a webbrowser control. Is there any way to get the containing form to know when the user has moved the mouse...
1
by: timnels | last post by:
I have a control that paints a borderless form below it to act as a grid combo box. When the parent for is moved I need the control to detect that the parent form is moving/moved and move the...
9
by: Gummy | last post by:
Hello, I created a user control that has a ListBox and a RadioButtonList (and other stuff). The idea is that I put the user control on the ASPX page multiple times and each user control will...
10
by: gweasel | last post by:
What is the best way to apply a Validation Rule - or rather, where is the best place to put it? Is there an advantage to putting it on the field in the table vs setting the validation rule on the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.