这是上面函数导出来的菜单,后面ID号重复的,就是因为将有带子菜单的菜单名称也加进来了,如何去掉这些
菜单名
变量名
id
retgreyh1
RetgreyhToolStripMenuItem
1
reyrtytru2
ReyrtytruToolStripMenuItem
2
trujytij3
TrujytijToolStripMenuItem
3
tuytiu4
TuytiuToolStripMenuItem
4
yiuyiuyoi5
TyiiToolStripMenuItem
5
tyiuyiyuou6
TyiuyiyuouToolStripMenuItem
6
ytiuyot7
YtiuyotToolStripMenuItem
7
rtyhrtyu
RtyhrtyuToolStripMenuItem
7
rtgr8
RtgrToolStripMenuItem
8
retg9
RetgToolStripMenuItem
9
uyiouoi
UyiouoiuToolStripMenuItem
9
yuikuyo10
YuikuyoToolStripMenuItem
10
yiouop11
YiouopToolStripMenuItem
11
rtytru
RtytruToolStripMenuItem
11
uyioiu12
UyioiuToolStripMenuItem
12
rtuityi
RtuityiToolStripMenuItem
12
tyujtyiu13
TyujtyiuToolStripMenuItem
13
fggfjhng14
ToolStripMenuItem6
14
fgjhgjf15
ToolStripMenuItem7
15
gfjhg16
GfjhgToolStripMenuItem
16
gfjhg17
GfjhgToolStripMenuItem1
17
dfgrd18
Dfgrd18ToolStripMenuItem
18
dfgvbfdhb19
Dfgvbfdhb19ToolStripMenuItem
19
dfghfrtrthj
ToolStripMenuItem1
19
uyoiuo20
UyoiuoToolStripMenuItem
20
ytiuyi21
YtiuyiToolStripMenuItem
21
ytiyu22
YtiyuToolStripMenuItem
22
tyiuyi23
TyiuyiToolStripMenuItem
23
yuoiuo
YuoiuoToolStripMenuItem
23
uyioup24
UyioupToolStripMenuItem
24
yuiou25
YuiouToolStripMenuItem
25
ytujytiu26
YtujytiuToolStripMenuItem
26
tyuytiuy27
TyuytiuyToolStripMenuItem
27
tyuiy28
TyuiyToolStripMenuItem
28
yuioo
YuiooToolStripMenuItem
28
uyikuyo29
ToolStripMenuItem4
29
uydfthj30
UydfthjToolStripMenuItem
30
dvdxfgvbf31
Dvdxfgvbf33ToolStripMenuItem
31
uyiouiu
ToolStripMenuItem2
31
新建(&N)
NewToolStripMenuItem
32
打开(&O)
OpenToolStripMenuItem
33
保存(&S)
SaveToolStripMenuItem
34
另存为(&A)
SaveAsToolStripMenuItem
35
打印(&P)
PrintToolStripMenuItem
36
打印预览(&V)
PrintPreviewToolStripMenuItem
37
打印设置
PrintSetupToolStripMenuItem
38
退出(&X)
ExitToolStripMenuItem
39
文件(&F)
FileMenu
39
撤消(&U)
UndoToolStripMenuItem
40
重复(&R)
RedoToolStripMenuItem
41
剪切(&T)
CutToolStripMenuItem
42
复制(&C)
CopyToolStripMenuItem
43
粘贴(&P)
PasteToolStripMenuItem
44
全选(&A)
SelectAllToolStripMenuItem
45
编辑(&E)
EditMenu
45
工具栏(&T)
ToolBarToolStripMenuItem
46
状态栏(&S)
StatusBarToolStripMenuItem
47
视图(&V)
ViewMenu
47
选项(&O)
OptionsToolStripMenuItem
48
工具(&T)
ToolsMenu
48
新建窗口(&N)
NewWindowToolStripMenuItem
49
层叠(&C)
CascadeToolStripMenuItem
50
垂直平铺(&V)
TileVerticalToolStripMenuItem
51
水平平铺(&H)
TileHorizontalToolStripMenuItem
52
全部关闭(&L)
CloseAllToolStripMenuItem
53
排列图标(&A)
ArrangeIconsToolStripMenuItem
54
设置背景图
设置背景图ToolStripMenuItem
55
读取菜单名称
读取菜单名称ToolStripMenuItem
56
窗口(&W)
WindowsMenu
56
目录(&C)
ContentsToolStripMenuItem
57
索引(&I)
IndexToolStripMenuItem
58
搜索(&S)
SearchToolStripMenuItem
59
关于(&A) ...
AboutToolStripMenuItem
60
帮助(&H)
HelpMenu
60