各位:
我开发的VB.net程序窗体在CAD中加载后,从CAD操作状态到自定义窗体时,自定义窗体的按钮需单击二次才好用。不知各位大侠有什么好方法解决?
我的代码如下:
Try
Dim Ps As Autodesk.AutoCAD.Windows.PaletteSet = Nothing
Ps = New Autodesk.AutoCAD.Windows.PaletteSet("MyDialog")
'Ps.Style = PaletteSetStyles.UsePaletteNameAsTitleForSingle
Dim MD As MainDialog = New MainDialog()
Ps.Add("MyDialog", MD)
Ps.MinimumSize = New System.Drawing.Size(400, 550)
Ps.Visible = True
Ps.KeepFocus = True
Ps.Opacity = 85
'Ps.AutoRollUp = True
'Ps.Dock = DockSides.None
MD.ShowTable(0)
Catch ex As Exception
MsgBox(ex.Message)
End Try