Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / July 2007

Tip: Looking for answers? Try searching our database.

Control know when moved

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Smokey Grindle - 25 Jul 2007 15:34 GMT
Is there any way for a control to know when its location moved? and OnEvents
or such?
Göran Andersson - 25 Jul 2007 15:38 GMT
> 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

rowe_newsgroups - 25 Jul 2007 15:39 GMT
> 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
Smokey Grindle - 25 Jul 2007 15:41 GMT
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?
Kevin S Gallagher - 25 Jul 2007 20:46 GMT
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.