using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Buton_Yakalama
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
int gen, yuk;
bool sol = false, ust = false;
private void Form1_Resize(object sender, EventArgs e)
{
gen = this.Width;
yuk = this.Height;
}
private void button1_Click(object sender, EventArgs e)
{
this.Close();
}
private void Form1_Load(object sender, EventArgs e)
{
gen = this.Width;
yuk = this.Height;
}
private void button1_MouseMove(object sender, MouseEventArgs e)
{
if(button1.Left >= 0 && button1.Left <= (gen-170) && sol == false)
{
button1.Left += 75;
if (button1.Left >= (gen - 170))
{
sol = true;
}
}
else if (button1.Top >= 0 && button1.Top <= (yuk-100) && ust == false)
{
button1.Top += 40;
if (button1.Top >= (yuk - 100))
{
ust = true;
}
}
else if (button1.Left >= 75 && sol == true)
{
button1.Left -= 75;
}
else if (button1.Top >= 0 && button1.Top <= yuk && ust == true)
{
button1.Top -= 40;
if (button1.Top >= 0 && button1.Top <= 45)
{
sol = false;
ust = false;
}
}
}
}
}
C# ile çok fonksiyonlu hesap makinesi yapımı kodları....
TRCodeRooTeR 8444 1 2019-12-22 05:12:22C# ile yazılmış Bankamatik Otomasyonu program kodları...
TRCodeRooTeR 6990 1 2020-11-16 10:17:29