Moving an imagebox

Hi

I have a form and on that form is a imagebox, how can I make the image box move from the left of the form to the right of the form



Answer this question

Moving an imagebox

  • Brad House

    if you just want it to move straight there on another event just put
    imagebox.left = me.left - imagebox.width
    Andrew

  • y2k4life

    Ok but how do I do that
  • xanthus

    Here is an example :
            If PictureBox1.Left < Me.Width - PictureBox1.Width Then
                PictureBox1.Left += 1
            Else
                Timer1.Enabled = False
            End If



  • Kyderoy

    imagebox.left = me.left - imagebox.width
    I think it's :
    ImageBox.Left = Me.Width - ImageBox.Width



  • Schu

    Add a timer to your form. In the timers event move the imagebox a little to the right. Disable the timer when the imagebox is at the other side of the form.


  • Moving an imagebox