kerimov113
Centipat
- Katılım
- 19 Ekim 2021
- Mesajlar
- 61
- Çözümler
- 1
Daha fazla
- Cinsiyet
- Erkek
using System;
using System.Drawing;
using System.Windows.Forms;
namespace FontSize{
public partial class Form1 : Form{
int rotate_value;
public Form1(){
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e){
textBox1.Text = "Deneme yazısı";
}
private void radioButton1_CheckedChanged(object sender, EventArgs e){
rotate_value = 0;
}
private void radioButton2_CheckedChanged(object sender, EventArgs e){
rotate_value = 1;
}
private void button1_Click(object sender, EventArgs e){
float mv = textBox1.Font.Size;
if (rotate_value == 0){
mv -= 1;
Font font = new Font("Microsoft Sans Serif", mv);
textBox1.Font = font;
}else if(rotate_value == 1){
mv += 1;
Font font = new Font("Microsoft Sans Serif", mv);
textBox1.Font = font;
}
}
}
}
font-size
olarak azaltabilirsiniz.Tıklandığı zamanfont-size
olarak azaltabilirsiniz.
using System;
using System.Drawing;
using System.Windows.Forms;
namespace FontSize{
public partial class Form1 : Form{
int rotate_value;
public Form1(){
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e){
textBox1.Text = "Deneme yazısı";
}
private void radioButton1_CheckedChanged(object sender, EventArgs e){
rotate_value = 0;
}
private void radioButton2_CheckedChanged(object sender, EventArgs e){
rotate_value = 1;
}
private void button1_Click(object sender, EventArgs e){
float mv = textBox1.Font.Size;
if (rotate_value == 0){
mv -= 1;
Font font = new Font("Microsoft Sans Serif", mv);
textBox1.Font = font;
}else if(rotate_value == 1){
mv += 1;
Font font = new Font("Microsoft Sans Serif", mv);
textBox1.Font = font;
}
}
}
}
Size çok teşekkür ederim sayenizde ödevimi bitirebildim.C#:using System; using System.Drawing; using System.Windows.Forms; namespace FontSize{ public partial class Form1 : Form{ int rotate_value; public Form1(){ InitializeComponent(); } private void Form1_Load(object sender, EventArgs e){ textBox1.Text = "Deneme yazısı"; } private void radioButton1_CheckedChanged(object sender, EventArgs e){ rotate_value = 0; } private void radioButton2_CheckedChanged(object sender, EventArgs e){ rotate_value = 1; } private void button1_Click(object sender, EventArgs e){ float mv = textBox1.Font.Size; if (rotate_value == 0){ mv -= 1; Font font = new Font("Microsoft Sans Serif", mv); textBox1.Font = font; }else if(rotate_value == 1){ mv += 1; Font font = new Font("Microsoft Sans Serif", mv); textBox1.Font = font; } } } }[/C [/QUOTE]
Font font = new Font("Microsoft Sans Serif", mv);
Font font = new Font("Microsoft Sans Serif", mv, FontStyle.Bold | FontStyle.Italic | FontStyle.Underline);
Bu sitenin çalışmasını sağlamak için gerekli çerezleri ve deneyiminizi iyileştirmek için isteğe bağlı çerezleri kullanıyoruz.