none
Mover pictureBox circularmente (dentro de una elipse) RRS feed

  • Question

  • Hola a todos.

    Tengo un proyecto de crear un sistema solar con pictureBox. ¿Como hago para que 2 pictureBox se muevan en circulos, imitando a los planetas, por toda la form?

    Muchas gracias, Saludos!

    • Moved by Mike Feng Tuesday, March 12, 2013 1:01 PM
    Monday, March 11, 2013 10:46 PM

Answers

All replies

  • ¿Qué tal un GIF entrelazado?

    Chuck

    Monday, March 11, 2013 10:49 PM
  • Were sorry but this is an English speaking forum.

    Renee


    "MODERN PROGRAMMING is deficient in elementary ways BECAUSE of problems INTRODUCED by MODERN PROGRAMMING." Me

    Tuesday, March 12, 2013 12:51 AM
  • Hola,

    se pueden encontrar en los foros en español:
    http://social.msdn.microsoft.com/Forums/es-ES/categories


    Saludos,
    Zoli

    (Yo no hablo español.)

    Tuesday, March 12, 2013 2:43 PM
    Moderator
  • ¡Hola Adolforp94!

    Por favor,intente lo siguiente:

        Dim degrees As Integer = 0
        Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
            degrees += 1
            If degrees >= 360 Then degrees = 0
            Dim a As Double = degrees * Math.PI / 180
            Dim x As Integer = 100 * Math.Cos(a) + 250
            Dim y As Integer = 100 * Math.Sin(a) + 250
            PictureBox1.Left = y
            PictureBox1.Top = x
        End Sub


    Chuck

    Tuesday, March 12, 2013 9:29 PM