Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace MenuSzovegformazas
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void kilepToolStripMenuItem_Click(object sender, EventArgs e)
- {
- Application.Exit();
- }
- private void boldToolStripMenuItem_Click(object sender, EventArgs e)
- {
- textBox1.Font = new Font(textBox1.Font, FontStyle.Bold);
- }
- private void italicToolStripMenuItem_Click(object sender, EventArgs e)
- {
- textBox1.Font = new Font(textBox1.Font, FontStyle.Italic);
- }
- private void regularToolStripMenuItem_Click(object sender, EventArgs e)
- {
- textBox1.Font = new Font(textBox1.Font, FontStyle.Regular);
- }
- private void toolStripMenuItem2_Click(object sender, EventArgs e)
- {
- string fontname = textBox1.Font.Name;
- textBox1.Font = new Font(fontname, 12);
- }
- private void toolStripMenuItem3_Click(object sender, EventArgs e)
- {
- string fontname = textBox1.Font.Name;
- textBox1.Font = new Font(fontname, 16);
- }
- private void toolStripMenuItem4_Click(object sender, EventArgs e)
- {
- string fontname = textBox1.Font.Name;
- textBox1.Font = new Font(fontname, 18);
- }
- private void toolStripMenuItem5_Click(object sender, EventArgs e)
- {
- string fontname = textBox1.Font.Name;
- textBox1.Font = new Font(fontname, 24);
- }
- private void timesNewRomanToolStripMenuItem_Click(object sender, EventArgs e)
- {
- float fontsize = textBox1.Font.Size;
- textBox1.Font = new Font("Times New Roman", fontsize);
- }
- private void arialToolStripMenuItem_Click(object sender, EventArgs e)
- {
- float fontsize = textBox1.Font.Size;
- textBox1.Font = new Font("Arial", fontsize);
- }
- private void calibriToolStripMenuItem_Click(object sender, EventArgs e)
- {
- float fontsize = textBox1.Font.Size;
- textBox1.Font = new Font("Calibri", fontsize);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement