Control know when moved

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Smokey Grindle

    #1

    Control know when moved

    Is there any way for a control to know when its location moved? and OnEvents
    or such?


  • rowe_newsgroups

    #2
    Re: Control know when moved

    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

    Comment

    • =?ISO-8859-1?Q?G=F6ran_Andersson?=

      #3
      Re: Control know when moved

      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
      _____
      Göran Anderssons privata hemsida.

      Comment

      • Smokey Grindle

        #4
        Re: Control know when moved

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

        "Smokey Grindle" <nospam@nospam. comwrote in message
        news:%23MZ1ijsz HHA.3768@TK2MSF TNGP06.phx.gbl. ..
        Is there any way for a control to know when its location moved? and
        OnEvents or such?
        >

        Comment

        • Phill W.

          #5
          Re: Control know when moved

          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 ...

          OnLocationChang ed ?

          HTH,
          Phill W.

          Comment

          • Jack Jackson

            #6
            Re: Control know when moved

            I'm confused. If you want the LocationChanged event, there is the
            OnLocationChang ed method. Normally you prepend the event name with
            "On". Isn't that obvious?

            On Wed, 25 Jul 2007 10:41:19 -0400, "Smokey Grindle"
            <nospam@nospam. comwrote:
            >let me rephrase this... I know there is a locationchanged event, but what is
            >its OnEvent (overridable) method?
            >
            >"Smokey Grindle" <nospam@nospam. comwrote in message
            >news:%23MZ1ijs zHHA.3768@TK2MS FTNGP06.phx.gbl ...
            >Is there any way for a control to know when its location moved? and
            >OnEvents or such?
            >>
            >

            Comment

            • Smokey Grindle

              #7
              Re: Control know when moved

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

              "Smokey Grindle" <nospam@nospam. comwrote in message
              news:OxswX3uzHH A.748@TK2MSFTNG P04.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
              >
              >

              Comment

              • Kevin S Gallagher

                #8
                Re: Control know when moved

                How about the Move event

                Private Sub Button6_Move(By Val sender As Object, ByVal e As
                System.EventArg s) Handles Button6.Move
                Console.WriteLi ne(Button6.Top. ToString)
                End Sub
                Private Sub Button7_Click(B yVal sender As System.Object, ByVal e As
                System.EventArg s) Handles Button7.Click
                Dim i As Integer = Button6.Top
                i -= 10
                Button6.Top = i
                End Sub

                "Smokey Grindle" <nospam@nospam. comwrote in message
                news:%23MZ1ijsz HHA.3768@TK2MSF TNGP06.phx.gbl. ..
                Is there any way for a control to know when its location moved? and
                OnEvents or such?
                >

                Comment

                Working...