1 private void button1_Click(object sender, EventArgs e)
2
{
3
MessageBox.Show(" 1 个参数 "
4
);
5
}
6

7
8
9
10
private void button2_Click(
object sender, EventArgs e)
11
{
12
MessageBox.Show(
" 2 个参数。。 ",
13
"亮仔提示"
14
);
15
}
16
17

18
19
20
21
22
private void button3_Click(
object sender, EventArgs e)
23
{
24
MessageBox.Show(
" 3 个参数。。。 ",
25
" 亮仔提示",
26
MessageBoxButtons.YesNoCancel
27
);
28
}
29
30
31
32

33
34
private void button4_Click(
object sender, EventArgs e)
35
{
36
MessageBox.Show(
" 4 个参数。。。 ",
37
" 亮仔提示",
38
MessageBoxButtons.OKCancel,
39
MessageBoxIcon.Warning
40
);
41
}
42
43
44

45
46
47
48
private void button5_Click(
object sender, EventArgs e)
49
{
50
MessageBox.Show(
" 5 个参数。。 。 ",
51
" 亮仔提示",
52
MessageBoxButtons.OKCancel,
53
MessageBoxIcon.Warning,
54
MessageBoxDefaultButton.Button2
55
);
56
}
57
58
59

60
61
62
63
private void button6_Click(
object sender, EventArgs e)
64
{
65
MessageBox.Show(
" 6 个参数。。。 ",
66
" 亮仔提示",
67
MessageBoxButtons.OKCancel,
68
MessageBoxIcon.Warning,
69
MessageBoxDefaultButton.Button2,
70
MessageBoxOptions.RtlReading
//ServiceNotification//.RightAlign // 标题向右对齐。
71
);
72
}

73
74
75
76
77
78
79
private void button7_Click(
object sender, EventArgs e)
80
{
81
MessageBox.Show(
" 7 个参数。。帮助菜单不可用。。。。。 ",
82
" 亮仔提示",
83
MessageBoxButtons.OKCancel,
84
MessageBoxIcon.Warning,
85
MessageBoxDefaultButton.Button2,
86
MessageBoxOptions.RightAlign,
87
true // 标题向右对齐。。。。。
);
88
}
89
90