Kayan Yazı Oluşturma C#
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 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;
}
}
}
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);