Dim sender = args(0)
Dim e As object= args(1)
Dim dt As DataTable=DataTables("菜单生成")
Dim dr As DataRow=dt.Find("编码规则=\'"& sender.Name &"\'")
If dr IsNot Nothing And dr.IsNull("执行命令")=False Then
Select Case dr("执行命令")
Case "模拟点击"
MessageBox.Show(dr("打开对应窗口"))
\'MessageBox.Show(sender.Findforms.Controls(dr("打开对应窗口")))\'这句往后就提示了
sender.Findform.Controls(dr("打开对应窗口")).PerformClick()
End Select
End If