Guest User

prosz

a guest
Mar 30th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace EDG
  12. {
  13. public partial class Dokument : Form
  14. {
  15. public Dokument()
  16. {
  17. InitializeComponent();
  18. }
  19.  
  20. private void panel1_Paint(object sender, PaintEventArgs e)
  21. {
  22.  
  23. }
  24.  
  25. private void Kolor_Click(object sender, EventArgs e)
  26. {
  27. DialogResult colors = colorDialog1.ShowDialog();
  28. if(colors == DialogResult.OK)
  29. {
  30. richTextBox1.ForeColor = colorDialog1.Color;
  31. }
  32. }
  33.  
  34. private void Czcionka_Click(object sender, EventArgs e)
  35. {
  36. FontDialog fontDialog1 = new FontDialog();
  37. if (fontDialog1.ShowDialog() == DialogResult.OK & !String.IsNullOrEmpty(richTextBox1.Text))
  38. {
  39. richTextBox1.SelectionFont = fontDialog1.Font;
  40. }
  41. }
  42.  
  43. private void Dokument_Load(object sender, EventArgs e)
  44. {
  45.  
  46. }
  47.  
  48. private void richTextBox1_TextChanged(object sender, EventArgs e)
  49. {
  50.  
  51. }
  52.  
  53. private void label1_Click(object sender, EventArgs e)
  54. {
  55. foreach(FontFamily font in FontFamily.Families)
  56. {
  57.  
  58. }
  59. }
  60.  
  61. private void label1_Click_1(object sender, EventArgs e)
  62. {
  63.  
  64. }
  65.  
  66. private void label1_Click_2(object sender, EventArgs e)
  67. {
  68.  
  69. }
  70.  
  71. private void toolStripStatusLabel1_Click(object sender, EventArgs e)
  72. {
  73.  
  74. }
  75.  
  76. private void toolStripStatusLabel1_Click_1(object sender, EventArgs e)
  77. {
  78.  
  79. }
  80.  
  81. private void toolStripStatusLabel2_Click(object sender, EventArgs e)
  82. {
  83.  
  84.  
  85. }
  86.  
  87. private void label1_Click_3(object sender, EventArgs e)
  88. {
  89.  
  90.  
  91.  
  92.  
  93. }
  94.  
  95. private void label1_Click_4(object sender, EventArgs e)
  96. {
  97.  
  98. Label label1 = new Label();
  99. label1.BackColor = Color.Red;
  100. label1.Text = "Label";
  101. label1.Name = "Label";
  102.  
  103. string name = label1.Name;
  104. }
  105. }
  106. }
Advertisement
Add Comment
Please, Sign In to add comment