forked from ahdung/MessageTip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FmMDI.cs
45 lines (39 loc) · 1.07 KB
/
FmMDI.cs
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Windows.Forms;
namespace AhDung
{
public partial class FmMDI : Form
{
public FmMDI()
{
InitializeComponent();
}
private void btnNewChild_Click(object sender, EventArgs e)
{
new FmTester
{
Text = "Form " + (this.MdiChildren.Length + 1),
MdiParent = this
}.Show();
}
private void btnNewForm_Click(object sender, EventArgs e)
{
new FmTester().Show();
}
private void btnTestItem_Click(object sender, EventArgs e)
{
MessageTip.ShowOk((ToolStripItem)sender, txbText.Text);
}
private void txbText_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
btnShow.PerformClick();
}
}
private void btnShow_Click(object sender, EventArgs e)
{
MessageTip.ShowOk(txbText.Text);
}
}
}