I tried out the line of code that you gave me, but it aint working
for me!! I declared a string variable just before the mouse down
event and upon double click, i wanted to display the id of the shape
that is just selected( or the shape that is double-clicked). But that
does not seem to work for me.
Is there any other way, i can detect double click being done on a
shape, and open my personalized window?????
And how do i program, the ShapeAdded event? I want is that when a
shape is added i can write my own code. Not able to write the
Document_ShapeAdded event..!! Need help!! here is the code
private void axDrawingControl1_MouseDownEvent(object
sender,AxMicrosoft.Office.Interop.VisOcx.EVisOcx_MouseDownEvent e)
{
string ID1 =
application.ActiveWindow.Selection[1].ID.ToString();
if (0!=m_previousMouseDownEvent &&
(System.Environment.TickCount-m_previousMouseDownEvent)<threshold)
{
// Two MouseDown events occurred within
threshold milliseconds
// of each other... Consider it a "double
click"...
MessageBox.Show("Id1:" + ID1.ToString());
//System.Windows.Forms.MessageBox.Show("Double
clicked!");
}
m_previousMouseDownEvent =
System.Environment.TickCount;
}