我已经实现了双击我的 Visio中 </跨度> 独立程序使用这个:
http://www.mikeborozdin.com/post/Handling-the-Double-Click-Event-with-the- Visio中 </跨度> -API.aspx
但自从我开始使用mouseUp
我发现了解决方案:)
private DateTime firstClick = DateTime.Now; private void axDrawingControl1_MouseUpEvent(object sender, AxMicrosoft.Office.Interop.VisOcx.EVisOcx_MouseUpEvent e) { if (DateTime.Now < firstClick.AddMilliseconds(SystemInformation.DoubleClickTime)) { ShapeDoubleClick(sender, e); } firstClick = DateTime.Now; }
罗德里戈