PictureBox’a eklenmiş Resim’e soldan sağa geçiş efekti uygula — Csharp
PictureBox’a eklenmiş Resim’e soldan sağa geçiş efekti uygula — Csharp
Soru :
Formdaki picturebox’a eklenen resimlere soldan sağa geçiş efekti uygulayan programın csharp windows forms application kodlarını yazınız.
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 FotoGaleri { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { tmrGeri.Enabled = true; } private void button1_Click(object sender, EventArgs e) { tmrIleri.Enabled = true; //www.gorselprogramlama.com } private void tmrGeri_Tick(object sender, EventArgs e) { pGaleri2.Left -= 10; if (pGaleri2.Left <= -555) { tmrGeri.Enabled = false; pGaleri2.Location = new Point(0, 0);//www.gorselprogramlama.com } } private void tmrIleri_Tick(object sender, EventArgs e) { pGaleri2.Left += 10; if (pGaleri2.Left >= 555) { tmrIleri.Enabled = false; pGaleri2.Location = new Point(0, 0); } }//www.gorselprogramlama.com } }