# MouseDown Event not firing in Class Library

**URL:** <https://mapwindow.discourse.group/t/mousedown-event-not-firing-in-class-library/1814>\
**Category:** MapWinGIS\
**Created:** [February 2, 2025, 4:16am UTC](https://mapwindow.discourse.group/t/mousedown-event-not-firing-in-class-library/1814 "2025-02-02T04:16:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jota52](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@jota52](https://mapwindow.discourse.group/u/jota52)\
**Post date:** [February 2, 2025, 4:16am UTC](https://mapwindow.discourse.group/t/mousedown-event-not-firing-in-class-library/1814/1 "2025-02-02T04:16:36Z")

</div>

Hi ! I have a [vb.net](http://vb.net) class library with mapwin ocx inside a splitcontainer panel . When using the library in an application the mousedown, mouseup and mousemove events do no fire. After adding the layers we add:  
AxMap1.SendMouseDown = True  
AxMap1.SendMouseUp = True  
AxMap1.SendMouseMove = True  
This is all done in the class library.

Any ideas on how to solve this ?  
George

---

<div class="post-metadata">

**Author:** ![jota52](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@jota52](https://mapwindow.discourse.group/u/jota52)\
**Post date:** [February 3, 2025, 4:23am UTC](https://mapwindow.discourse.group/t/mousedown-event-not-firing-in-class-library/1814/2 "2025-02-03T04:23:32Z")

</div>

Nevermind, got it working.

---

<div class="post-metadata">

**Author:** ![Bob\_Pgh](https://avatars.discourse-cdn.com/v4/letter/b/2bfe46/32.png) [@Bob\_Pgh](https://mapwindow.discourse.group/u/Bob_Pgh)\
**Post date:** [February 8, 2025, 5:10pm UTC](https://mapwindow.discourse.group/t/mousedown-event-not-firing-in-class-library/1814/3 "2025-02-08T17:10:12Z")

</div>

You want to share your solution with the rest of the class? 😁

---

<div class="post-metadata">

**Author:** ![jota52](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@jota52](https://mapwindow.discourse.group/u/jota52)\
**Post date:** [February 10, 2025, 4:35am UTC](https://mapwindow.discourse.group/t/mousedown-event-not-firing-in-class-library/1814/4 "2025-02-10T04:35:05Z")

</div>

Hi Bob, after setting layers and doing the sendmousedow, up,and move =true  
the mousedownevent started working but the right click was not.  
What I wanted to do was to start shape editing mode using the right click on a polyline shape, but since that wasn´t working I placed a toolstripmenu with an option to start the editing and on the left click (mousedownevent ) I checked if editing was on and went on changing the shape.  
George.
