About.cs 970 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. namespace OTSMeasureApp
  11. {
  12. public partial class About : Form
  13. {
  14. public About()
  15. {
  16. InitializeComponent();
  17. }
  18. private void About_Load(object sender, EventArgs e)
  19. {
  20. richTextBox1.Text = "Version Current : 2.1";
  21. richTextBox1.Select(0, richTextBox1.Text.Length);
  22. //richTextBox1.SelectionColor = Color.DarkBlue;
  23. richTextBox1.SelectionAlignment = HorizontalAlignment.Center;
  24. richTextBox1.ReadOnly = true;
  25. richTextBox1.Enabled = false;
  26. richTextBox1.Select(0, 0);
  27. this.Focus();
  28. }
  29. private void button_OK_Click(object sender, EventArgs e)
  30. {
  31. this.Close();
  32. }
  33. }
  34. }