Új hozzászólás Aktív témák

  • klambi

    addikt

    szevasztok!
    megint c# ban kellene 1 kis help
    van 1 from amiben 1 gomb, ezt kellene az ablakban ide oda mozgatni, a jobbra léptetés meg is van csak amikor visszafelé kellene mennie azt nem toom hogy csináljam meg
    1 timerrel csináltam

    private void button1_Click(object sender, EventArgs e)
    {
    timer1.Start();
    }
    private void timer1_Tick(object sender, EventArgs e)
    {
    if (button1.Location.X + button1.Width + 7 < this.Width)
    {
    button1.Location = new Point(button1.Location.X + 7, button1.Location.Y);
    }
    else
    {
    button1.Location = new Point(button1.Location.X - 7, button1.Location.Y);
    }
    }

    most ugye a végén ide oda ugrál, de az egész sorban ide oda kellene mozognia.

    ebben tud valaki segíteni?!

    "Mond szépen angolul: Gyors róka!"

Új hozzászólás Aktív témák