-
Fototrend

Új hozzászólás Aktív témák
-
klambi
addikt
és annak mi a pontos szintatktikája, vagy hova kell tenni, ha egy gombot leteszek az ellenkező oldalra is és 1 klikkre mind a 2 induljon el?

ja megvan hóhóhóóóó
private void button1_Click(object sender, EventArgs e)
{
timer1.Start();
timer2.Start();
}
int inc = 7;
private void timer1_Tick(object sender, EventArgs e)
{
button1.Location = new Point(button1.Location.X + inc, button1.Location.Y);
if (button1.Location.X >= this.ClientRectangle.Width - button1.Width) inc *= -1;
if (button1.Location.X <= this.ClientRectangle.X) inc *= -1;
}
private void timer2_Tick(object sender, EventArgs e)
{
button2.Location = new Point(button2.Location.X - inc, button2.Location.Y);
if (button2.Location.X >= this.ClientRectangle.Width + button2.Width) inc *= +1;
if (button2.Location.X <= this.ClientRectangle.X) inc *= +1;
}
Új hozzászólás Aktív témák
● olvasd el a téma összefoglalót!
- Gamer PC - R5 5600X, RTX 3060ti és 16gb RAM + GARANCIA
- HIGH-END GAMER PC Ryzen 7 9800X3D / RTX 5080 16GB / 32GB DDR5 / 2TB NVMe - Beszámítás
- Lenovo Tab M11 / TB330FU
- SZUPER Akcióban Új Bontatlan Dyson V15 Origin 3 év gyártói garanciával Azonnal Átvehető
- Bontatlan Intel Core ULTRA 9 285K (24mag!) + hűtött VRM-es Z890 alaplap! GAR/SZÁMLA (a Te nevedre)!
- Apple Magic Mouse A3204 (USB-C)
- BESZÁMÍTÁS! ASUS H510M i5 11400F 16GB DDR4 512GB SSD RX 6700 10GB Zalman T4 Plus Chieftec 650W
- Gigabyte Aorus 16X QHD 165Hz G-Sync i9-14900HX 24mag 16GB 1TB Nvidia RTX4070 8GB 140W Win11 Garancia
- 134 - Lenovo Legion Pro 7 (16IRX8H) - Intel Core i9-13900HX, RTX 4090
- ÚJ AKKU! Ár/ÉRTÉK BAJNOK! Dell Latitude 5330 i3-1215U 6mag! 16GB 512GB 13.3" FHD 1 év gar
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest
Cég: Central PC számítógép és laptop szerviz - Pécs
Város: Pécs



