Kayan Yazı Oluşturma C#

Kayan Yazı Oluşturma C#

[code lang=”csharp”]

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;//www.gorselprogramlama.com

using System.Linq;

using System.Text;

using System.Windows.Forms;

namespace substring_metodu

{

public partial class Form1 : Form

{

public Form1()

{

InitializeComponent();//www.gorselprogramlama.com

}

private void timer1_Tick(object sender, EventArgs e)

{

this.Text = this.Text.Substring(1) + this.Text.Substring(0, 1);

}

private void Form1_Load(object sender, EventArgs e)

{

this.Text = " Deneme 1.0 "; //www.gorselprogramlama.com

timer1.Enabled = true;

}

}

}//www.gorselprogramlama.com

[/code]

Not: Eğer forma değilde herhangi bir nesneye kayan yazı oluşturmak istiyorsanız this yerine nesne ismini yazınız.Örnek label için label1.Text = label1.Text.Substring(1) + label1.Text.Substring(0, 1);

Dosyayı İNDİR

Yorumlar 7

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir