forked from MarkusMaal/BlueScreenSimulatorPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTextView.cs
More file actions
30 lines (27 loc) · 741 Bytes
/
TextView.cs
File metadata and controls
30 lines (27 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Windows.Forms;
namespace UltimateBlueScreenSimulator
{
public partial class TextView : Form
{
internal string Title = "";
public TextView()
{
InitializeComponent();
}
private void TextView_Load(object sender, EventArgs e)
{
textBox1.Text = this.Text;
this.Text = Title;
textBox1.SelectionStart = 0;
textBox1.SelectionLength = 0;
textBox1.DeselectAll();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
textBox1.SelectionStart = 0;
textBox1.SelectionLength = 0;
textBox1.DeselectAll();
}
}
}