# MouseHover event

**URL:** <https://community.thinkgeo.com/t/mousehover-event/795>\
**Category:** WinForms\
**Created:** [October 28, 2009, 10:08am UTC](https://community.thinkgeo.com/t/mousehover-event/795 "2009-10-28T10:08:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![roundboy0](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@roundboy0](https://community.thinkgeo.com/u/roundboy0)\
**Post date:** [October 28, 2009, 10:08am UTC](https://community.thinkgeo.com/t/mousehover-event/795/1 "2009-10-28T10:08:05Z")

</div>

A&nbsp;few&nbsp;questions&nbsp;about&nbsp;the&nbsp;MouseHover&nbsp;event:

1.&nbsp;I'm&nbsp;hooking&nbsp;the&nbsp;event&nbsp;and&nbsp;receive&nbsp;it,&nbsp;but&nbsp;if&nbsp;I&nbsp;start&nbsp;moving&nbsp;the&nbsp;mouse&nbsp;and&nbsp;hover&nbsp;over&nbsp;another&nbsp;point,&nbsp;I&nbsp;don't&nbsp;get&nbsp;the&nbsp;event&nbsp;again.&nbsp;&nbsp;If&nbsp;I&nbsp;move&nbsp;the&nbsp;mouse&nbsp;outside&nbsp;the&nbsp;map&nbsp;control&nbsp;then&nbsp;reenter&nbsp;the&nbsp;control&nbsp;and&nbsp;hover,&nbsp;I&nbsp;get&nbsp;another&nbsp;MouseHover&nbsp;event.&nbsp;&nbsp;It&nbsp;seems&nbsp;like&nbsp;moving&nbsp;the&nbsp;mouse&nbsp;to&nbsp;another&nbsp;point&nbsp;and&nbsp;hovering&nbsp;should&nbsp;send&nbsp;another&nbsp;hover&nbsp;event&nbsp;without&nbsp;having&nbsp;to&nbsp;leave&nbsp;the&nbsp;control.

2.&nbsp;I&nbsp;could&nbsp;not&nbsp;find&nbsp;a&nbsp;way&nbsp;to&nbsp;set&nbsp;the&nbsp;time&nbsp;before&nbsp;the&nbsp;mouse&nbsp;hover&nbsp;event&nbsp;is&nbsp;raised.&nbsp;&nbsp;Currently,&nbsp;it's&nbsp;very&nbsp;fast.&nbsp;&nbsp;Many&nbsp;of&nbsp;the&nbsp;standard&nbsp;controls&nbsp;that&nbsp;support&nbsp;a&nbsp;MouseHover&nbsp;event&nbsp;also&nbsp;have&nbsp;a&nbsp;MouseHoverTime&nbsp;property&nbsp;that&nbsp;allows&nbsp;you&nbsp;to&nbsp;customize&nbsp;the&nbsp;time&nbsp;the&nbsp;user&nbsp;has&nbsp;to&nbsp;hover&nbsp;before&nbsp;the&nbsp;MouseHover&nbsp;event&nbsp;is&nbsp;fired.&nbsp;&nbsp;Is&nbsp;there&nbsp;a&nbsp;way&nbsp;to&nbsp;do&nbsp;this&nbsp;in&nbsp;MapSuite&nbsp;that&nbsp;I'm&nbsp;missing?

&nbsp;

Thanks,

Chris

&nbsp;

---

<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:** [October 28, 2009, 7:02pm UTC](https://community.thinkgeo.com/t/mousehover-event/795/2 "2009-10-28T19:02:54Z")

</div>

Chris,&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;I&nbsp;understand&nbsp;right,&nbsp;what&nbsp;you&nbsp;are&nbsp;trying&nbsp;to&nbsp;achieve&nbsp;is&nbsp;the&nbsp;Tooltip&nbsp;functionality&nbsp;just&nbsp;like&nbsp;the&nbsp;MapSuite2.x.&nbsp;Following&nbsp;post&nbsp;shows&nbsp;you&nbsp;good&nbsp;samples&nbsp;both&nbsp;in&nbsp;WInforms&nbsp;and&nbsp;Wpf&nbsp;Map&nbsp;Control.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Let&nbsp;me&nbsp;know&nbsp;if&nbsp;any&nbsp;more&nbsp;questions.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;

---

<div class="post-metadata">

**Author:** ![roundboy0](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@roundboy0](https://community.thinkgeo.com/u/roundboy0)\
**Post date:** [October 28, 2009, 9:27pm UTC](https://community.thinkgeo.com/t/mousehover-event/795/3 "2009-10-28T21:27:53Z")

</div>

Well,&nbsp;you&nbsp;didn't&nbsp;attach&nbsp;any&nbsp;links.

But&nbsp;I&nbsp;did&nbsp;search&nbsp;the&nbsp;forums&nbsp;before&nbsp;posting&nbsp;my&nbsp;question,&nbsp;so&nbsp;I've&nbsp;probably&nbsp;seen&nbsp;the&nbsp;links&nbsp;you&nbsp;would&nbsp;have&nbsp;posted.&nbsp;&nbsp;My&nbsp;code&nbsp;is&nbsp;essentially&nbsp;the&nbsp;same.

My&nbsp;problem&nbsp;is&nbsp;that&nbsp;the&nbsp;MouseHover&nbsp;event&nbsp;is&nbsp;not&nbsp;being&nbsp;fired&nbsp;after&nbsp;moving&nbsp;the&nbsp;mouse&nbsp;and&nbsp;stopping&nbsp;again.&nbsp;&nbsp;

&nbsp;

Chris

---

<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:** [October 29, 2009, 12:15am UTC](https://community.thinkgeo.com/t/mousehover-event/795/4 "2009-10-29T00:15:05Z")

</div>

Chris,

I&nbsp;am&nbsp;sorry&nbsp;for&nbsp;missing&nbsp;the&nbsp;links  
[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/6204/afv/topic/Default.aspx)  
[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/6492/afv/topic/Default.aspx)  
&nbsp;  
So&nbsp;your&nbsp;problem&nbsp;is&nbsp;in&nbsp;the&nbsp;sample&nbsp;provided&nbsp;in&nbsp;above&nbsp;posts,&nbsp;the&nbsp;MouseHover&nbsp;event&nbsp;will&nbsp;not&nbsp;fire&nbsp;again&nbsp;if&nbsp;we&nbsp;mouse&nbsp;hover&nbsp;on&nbsp;the&nbsp;map&nbsp;the&nbsp;second&nbsp;time?&nbsp;Sorry&nbsp;for&nbsp;my&nbsp;bad&nbsp;understanding.  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![roundboy0](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@roundboy0](https://community.thinkgeo.com/u/roundboy0)\
**Post date:** [October 29, 2009, 4:40am UTC](https://community.thinkgeo.com/t/mousehover-event/795/5 "2009-10-29T04:40:39Z")

</div>

That&nbsp;is&nbsp;correct,&nbsp;the&nbsp;MouseHover&nbsp;event&nbsp;does&nbsp;not&nbsp;fire&nbsp;again&nbsp;until&nbsp;I&nbsp;move&nbsp;the&nbsp;mouse&nbsp;out&nbsp;of&nbsp;the&nbsp;control&nbsp;and&nbsp;back&nbsp;in.

Also,&nbsp;I'd&nbsp;like&nbsp;to&nbsp;be&nbsp;able&nbsp;to&nbsp;change&nbsp;the&nbsp;time&nbsp;that&nbsp;the&nbsp;mouse&nbsp;has&nbsp;to&nbsp;remain&nbsp;stationary&nbsp;before&nbsp;the&nbsp;MouseHover&nbsp;event&nbsp;fires&nbsp;(i.e.,&nbsp;a&nbsp;MouseHoverTime&nbsp;property&nbsp;such&nbsp;as&nbsp;exists&nbsp;in&nbsp;many&nbsp;of&nbsp;the&nbsp;common&nbsp;Windows&nbsp;controls).

I've&nbsp;done&nbsp;mouse&nbsp;hover&nbsp;tooltips&nbsp;in&nbsp;the&nbsp;past&nbsp;using&nbsp;a&nbsp;timer,&nbsp;so&nbsp;it's&nbsp;no&nbsp;big&nbsp;deal&nbsp;if&nbsp;this&nbsp;isn't&nbsp;going&nbsp;to&nbsp;work&nbsp;with&nbsp;the&nbsp;MouseHover&nbsp;event&nbsp;from&nbsp;the&nbsp;map.&nbsp;&nbsp;I&nbsp;just&nbsp;thought&nbsp;I'd&nbsp;use&nbsp;it&nbsp;since&nbsp;it&nbsp;was&nbsp;there.

Chris

&nbsp;

---

<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:** [October 29, 2009, 11:54pm UTC](https://community.thinkgeo.com/t/mousehover-event/795/6 "2009-10-29T23:54:52Z")

</div>

Chris,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;letting&nbsp;us&nbsp;know&nbsp;your&nbsp;status.&nbsp;  
&nbsp;&nbsp;  
&nbsp;The&nbsp;MapControl&nbsp;did&nbsp;not&nbsp;have&nbsp;its&nbsp;own&nbsp;MouseHover&nbsp;event,&nbsp;and&nbsp;it&nbsp;shared&nbsp;the&nbsp;MouseHover&nbsp;event&nbsp;with&nbsp;UserControl.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;tested&nbsp;against&nbsp;a&nbsp;pure&nbsp;UserControl,&nbsp;it&nbsp;has&nbsp;the&nbsp;same&nbsp;result.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;qeustions&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;

---

<div class="post-metadata">

**Author:** ![roundboy0](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@roundboy0](https://community.thinkgeo.com/u/roundboy0)\
**Post date:** [October 31, 2009, 7:18am UTC](https://community.thinkgeo.com/t/mousehover-event/795/7 "2009-10-31T07:18:42Z")

</div>

Ah,&nbsp;OK.

I&nbsp;suppose&nbsp;that&nbsp;makes&nbsp;sense.&nbsp;&nbsp;I&nbsp;think&nbsp;that&nbsp;the&nbsp;MouseHover&nbsp;event&nbsp;is&nbsp;meant&nbsp;to&nbsp;display&nbsp;a&nbsp;helpful&nbsp;tip&nbsp;for&nbsp;the&nbsp;entire&nbsp;control&nbsp;one&nbsp;time&nbsp;when&nbsp;the&nbsp;user&nbsp;hovers&nbsp;over&nbsp;a&nbsp;control...but&nbsp;you&nbsp;wouldn't&nbsp;want&nbsp;to&nbsp;keep&nbsp;displaying&nbsp;the&nbsp;tip&nbsp;every&nbsp;time&nbsp;the&nbsp;mouse&nbsp;moved&nbsp;and&nbsp;stopped.

Hovering&nbsp;over&nbsp;a&nbsp;map&nbsp;is&nbsp;a&nbsp;different&nbsp;thing&nbsp;so&nbsp;it'll&nbsp;have&nbsp;to&nbsp;be&nbsp;done&nbsp;manually,&nbsp;which&nbsp;is&nbsp;easy&nbsp;enough.

&nbsp;

Thanks,

Chris

&nbsp;

&nbsp;

---

<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:** [November 1, 2009, 5:56pm UTC](https://community.thinkgeo.com/t/mousehover-event/795/8 "2009-11-01T17:56:40Z")

</div>

Chris,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;letting&nbsp;me&nbsp;know&nbsp;your&nbsp;idea&nbsp;and&nbsp;status.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;quesitons&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;
