Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace EDG
- {
- public partial class Dokument : Form
- {
- public Dokument()
- {
- InitializeComponent();
- }
- private void panel1_Paint(object sender, PaintEventArgs e)
- {
- }
- private void Kolor_Click(object sender, EventArgs e)
- {
- DialogResult colors = colorDialog1.ShowDialog();
- if(colors == DialogResult.OK)
- {
- richTextBox1.ForeColor = colorDialog1.Color;
- }
- }
- private void Czcionka_Click(object sender, EventArgs e)
- {
- FontDialog fontDialog1 = new FontDialog();
- if (fontDialog1.ShowDialog() == DialogResult.OK & !String.IsNullOrEmpty(richTextBox1.Text))
- {
- richTextBox1.SelectionFont = fontDialog1.Font;
- }
- }
- private void Dokument_Load(object sender, EventArgs e)
- {
- }
- private void richTextBox1_TextChanged(object sender, EventArgs e)
- {
- }
- private void label1_Click(object sender, EventArgs e)
- {
- foreach(FontFamily font in FontFamily.Families)
- {
- }
- }
- private void label1_Click_1(object sender, EventArgs e)
- {
- }
- private void label1_Click_2(object sender, EventArgs e)
- {
- }
- private void toolStripStatusLabel1_Click(object sender, EventArgs e)
- {
- }
- private void toolStripStatusLabel1_Click_1(object sender, EventArgs e)
- {
- }
- private void toolStripStatusLabel2_Click(object sender, EventArgs e)
- {
- }
- private void label1_Click_3(object sender, EventArgs e)
- {
- }
- private void label1_Click_4(object sender, EventArgs e)
- {
- Label label1 = new Label();
- label1.BackColor = Color.Red;
- label1.Text = "Label";
- label1.Name = "Label";
- string name = label1.Name;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment