Salamlar Bu Kodu Hazirladiğiniz Programda İstifadə Edə Bilərsiz
Kod:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TransitionEffect
{
public partial class Form1 : Form
{
int x = 700, y = 200;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
this.Location = new Point(x, y);
timerPos.Start();
}
private void timerPos_Tick(object sender, EventArgs e)
{
if (x >= 100)
{
x -= 50;
this.Location = new Point(x, y);
}
}
}
}