# Event Handler Tutorial

**URL:** <https://community.thinkgeo.com/t/event-handler-tutorial/1796>\
**Category:** WinForms\
**Created:** [September 21, 2011, 1:31pm UTC](https://community.thinkgeo.com/t/event-handler-tutorial/1796 "2011-09-21T13:31:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard3](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/b5a626/32.png) [@Richard3](https://community.thinkgeo.com/u/Richard3)\
**Post date:** [September 21, 2011, 1:31pm UTC](https://community.thinkgeo.com/t/event-handler-tutorial/1796/1 "2011-09-21T13:31:19Z")

</div>

I&nbsp;am&nbsp;a&nbsp;newbie&nbsp;but&nbsp;I&nbsp;am&nbsp;really&nbsp;struggling&nbsp;to&nbsp;understand&nbsp;all&nbsp;the&nbsp;event&nbsp;handlers&nbsp;for&nbsp;the&nbsp;WinformMap&nbsp;and&nbsp;Overlays&nbsp;in&nbsp;the&nbsp;Desktop&nbsp;edition.&nbsp;&nbsp;&nbsp;Right&nbsp;now&nbsp;I&nbsp;am&nbsp;just&nbsp;trying&nbsp;to&nbsp;determine&nbsp;if&nbsp;the&nbsp;mouse&nbsp;has&nbsp;been&nbsp;clicked&nbsp;and&nbsp;or&nbsp;dragged&nbsp;within&nbsp;a&nbsp;"MiniMap"&nbsp;adornment&nbsp;layer&nbsp;so&nbsp;that&nbsp;I&nbsp;can&nbsp;pan&nbsp;the&nbsp;winformsMap&nbsp;control&nbsp;according&nbsp;to&nbsp;the&nbsp;scale.&nbsp;&nbsp;However,&nbsp;I&nbsp;don't&nbsp;seem&nbsp;to&nbsp;have&nbsp;the&nbsp;correct&nbsp;event&nbsp;handler&nbsp;since&nbsp;the&nbsp;debugger&nbsp;never&nbsp;enter&nbsp;the&nbsp;handler&nbsp;I&nbsp;have&nbsp;defined.&nbsp;&nbsp;&nbsp;I&nbsp;am&nbsp;totally&nbsp;confused&nbsp;my&nbsp;all&nbsp;the&nbsp;different&nbsp;handler&nbsp;for&nbsp;MapMouseClick,&nbsp;InteractiveOverlay&nbsp;MouseClick,&nbsp;EditInteractiveOverlay&nbsp;MouseClick,&nbsp;etc.&nbsp;&nbsp;&nbsp;Is&nbsp;there&nbsp;a&nbsp;good&nbsp;sample&nbsp;application&nbsp;that&nbsp;illustrates&nbsp;how&nbsp;to&nbsp;use&nbsp;all&nbsp;the&nbsp;different&nbsp;events?&nbsp;

On&nbsp;a&nbsp;separate&nbsp;complaint,&nbsp;I&nbsp;find&nbsp;the&nbsp;API&nbsp;documentation&nbsp;to&nbsp;be&nbsp;much&nbsp;too&nbsp;brief&nbsp;and&nbsp;incomplete.&nbsp;&nbsp;Some&nbsp;classes&nbsp;don't&nbsp;even&nbsp;have&nbsp;a&nbsp;summary&nbsp;entry&nbsp;for&nbsp;more&nbsp;than&nbsp;half&nbsp;the&nbsp;items.&nbsp;&nbsp;I&nbsp;know&nbsp;it&nbsp;should&nbsp;all&nbsp;be&nbsp;obvious&nbsp;based&nbsp;on&nbsp;the&nbsp;inheritance&nbsp;and&nbsp;naming&nbsp;conventions&nbsp;but&nbsp;most&nbsp;of&nbsp;the&nbsp;comments&nbsp;are&nbsp;so&nbsp;brief&nbsp;the&nbsp;newbie&nbsp;like&nbsp;me&nbsp;doesn't&nbsp;a&nbsp;clue&nbsp;what&nbsp;anything&nbsp;is&nbsp;supposed&nbsp;to&nbsp;do&nbsp;or&nbsp;how&nbsp;to&nbsp;use&nbsp;it.&nbsp;&nbsp;Is&nbsp;there&nbsp;any&nbsp;getting&nbsp;started&nbsp;or&nbsp;tutorials&nbsp;that&nbsp;go&nbsp;into&nbsp;more&nbsp;depth&nbsp;on&nbsp;the&nbsp;meaning&nbsp;and&nbsp;use?&nbsp;&nbsp;It&nbsp;is&nbsp;nice&nbsp;to&nbsp;have&nbsp;a&nbsp;tool&nbsp;with&nbsp;many&nbsp;features&nbsp;but&nbsp;if&nbsp;only&nbsp;the&nbsp;experts&nbsp;can&nbsp;use&nbsp;them&nbsp;then&nbsp;the&nbsp;tool&nbsp;isn't&nbsp;very&nbsp;useful.

Richard

&nbsp;

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [September 21, 2011, 8:30pm UTC](https://community.thinkgeo.com/t/event-handler-tutorial/1796/2 "2011-09-21T20:30:55Z")

</div>

Agreed&nbsp;100%.&nbsp;Documentation&nbsp;is&nbsp;the&nbsp;Achilles&nbsp;Heel&nbsp;of&nbsp;this&nbsp;product.&nbsp;They&nbsp;should&nbsp;really&nbsp;pay&nbsp;attention&nbsp;to&nbsp;how&nbsp;their&nbsp;competitors&nbsp;are&nbsp;doing&nbsp;it&nbsp;-&nbsp;such&nbsp;as&nbsp;MapInfo&nbsp;for&nbsp;example,&nbsp;which&nbsp;has&nbsp;brilliant&nbsp;documentation&nbsp;making&nbsp;it&nbsp;very&nbsp;easy&nbsp;to&nbsp;use.&nbsp;  
&nbsp;&nbsp;  
&nbsp;All&nbsp;the&nbsp;samples&nbsp;are&nbsp;invariably&nbsp;in&nbsp;the&nbsp;wrong&nbsp;language&nbsp;or&nbsp;using&nbsp;the&nbsp;wrong&nbsp;version&nbsp;so&nbsp;just&nbsp;getting&nbsp;them&nbsp;going&nbsp;takes&nbsp;up&nbsp;far&nbsp;too&nbsp;much&nbsp;time&nbsp;-&nbsp;I&nbsp;want&nbsp;to&nbsp;be&nbsp;able&nbsp;to&nbsp;flip&nbsp;to&nbsp;a&nbsp;page&nbsp;in&nbsp;a&nbsp;manual&nbsp;or&nbsp;preferably&nbsp;an&nbsp;online&nbsp;manual&nbsp;and&nbsp;see&nbsp;all&nbsp;I&nbsp;need&nbsp;to&nbsp;know&nbsp;on&nbsp;that&nbsp;page.

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [September 23, 2011, 9:23am UTC](https://community.thinkgeo.com/t/event-handler-tutorial/1796/3 "2011-09-23T09:23:39Z")

</div>

&nbsp;Richard,

&nbsp;

&nbsp;You&nbsp;can&nbsp;find&nbsp;many&nbsp;samples&nbsp;for&nbsp;how&nbsp;to&nbsp;use&nbsp;events&nbsp;of&nbsp;MapSuite&nbsp;at&nbsp;[wiki.thinkgeo.com/wiki/Map\_S...ll\_Samples](http://wiki.thinkgeo.com/wiki/Map_Suite_Desktop_Edition_All_Samples)&nbsp;,&nbsp;and&nbsp;there&nbsp;are&nbsp;so&nbsp;many&nbsp;samples,&nbsp;I&nbsp;am&nbsp;looking&nbsp;for&nbsp;a&nbsp;good&nbsp;sample&nbsp;which&nbsp;show&nbsp;how&nbsp;to&nbsp;use&nbsp;different&nbsp;event,&nbsp;any&nbsp;result&nbsp;I&nbsp;will&nbsp;update&nbsp;to&nbsp;you.

&nbsp;

The&nbsp;API&nbsp;document&nbsp;is&nbsp;just&nbsp;one&nbsp;of&nbsp;guidance&nbsp;for&nbsp;users,&nbsp;you&nbsp;have&nbsp;many&nbsp;others&nbsp;for&nbsp;each&nbsp;products,&nbsp;such&nbsp;as&nbsp;Quick&nbsp;Start&nbsp;Guide,&nbsp;Installation&nbsp;Guide,&nbsp;Deployment&nbsp;Guide,&nbsp;FAQ,&nbsp;Videos&nbsp;&&nbsp;Screenshots,&nbsp;Code&nbsp;samples,&nbsp;all&nbsp;of&nbsp;them&nbsp;you&nbsp;can&nbsp;get&nbsp;from&nbsp;our&nbsp;[wiki.thinkgeo.com](http://wiki.thinkgeo.com/)&nbsp;

&nbsp;

And&nbsp;if&nbsp;you&nbsp;still&nbsp;want&nbsp;to&nbsp;we&nbsp;enhance&nbsp;our&nbsp;documentation,&nbsp;you&nbsp;can&nbsp;post&nbsp;your&nbsp;requirement&nbsp;to&nbsp;[helpdesk.thinkgeo.com/EnhancementTracker](http://helpdesk.thinkgeo.com/EnhancementTracker)&nbsp;,&nbsp;we&nbsp;will&nbsp;consider&nbsp;the&nbsp;popular&nbsp;item&nbsp;and&nbsp;do&nbsp;it.

&nbsp;

Thanks,

James
