I am using the CADEditorControlDemo and I am trying to get access to the entity that I select/click in the viewer control.
However none of the mouse events for the control fire when I click into the drawing.
Can you please let me know how I capture the mouse click event from the control?
BTW: I have tried MouseDown, MouseClick and Click events and none fire.
Code: Select all
Public Sub New()
Me.InitializeComponent()
Me.InitializeSettings()
' ' hooking event here
AddHandler cadEditorControl.MouseClick, AddressOf cadEditorControl_MouseClick
End Sub
Code: Select all
Private Sub cadEditorControl_MouseClick(ByVal sender As Object, _
ByVal e As MouseEventArgs)
Try
' ... do something here
Catch ex As Exception
End Try
End Sub