Nasıl Yapılır

C# İle Örnekler #16

c

C# CheckBox ile Font Özelliklerini Değiştirme İşlemi Nasıl Yapılır ?

(CheckedChanged)

 
namespace checkbox_ornek
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
textBox1.Font = new Font(textBox1.Font,textBox1.Font.Style ^ FontStyle.Bold);
}
private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
textBox1.Font = new Font(textBox1.Font, textBox1.Font.Style ^ FontStyle.Italic);
}
private void checkBox3_CheckedChanged(object sender, EventArgs e)
{
textBox1.Font = new Font(textBox1.Font, textBox1.Font.Style ^ FontStyle.Underline);
}
}

 

Yazar Hakkında

Hız Hosting

Yorum Yap