BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Visio C# DoubleClick

Started by RodrigoCampos, March 20, 2012, 11:10:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


I have implemented double-Click on my Visio C# standalone program using this:

But since I started using mouseUp, it stopped working. Anyone have some C# sample code that can show me how I can use "double mouseUp" to implement doubleClick?Is this possible?

Thank you in advance,
Rodrigo Campos


I found out the solution :)

        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;


Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 156 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1047KB.
Tokens: post-login.
Cache hits: 13: 0.00137s for 26,764 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]