# ToolTips

**URL:** <https://community.thinkgeo.com/t/tooltips/199>\
**Category:** WinForms\
**Created:** [January 31, 2009, 7:23am UTC](https://community.thinkgeo.com/t/tooltips/199 "2009-01-31T07:23:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![charryman](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/charryman/32/25013_2.png) [@charryman](https://community.thinkgeo.com/u/charryman)\
**Post date:** [January 31, 2009, 7:23am UTC](https://community.thinkgeo.com/t/tooltips/199/1 "2009-01-31T07:23:18Z")

</div>

In&nbsp;version&nbsp;2.0&nbsp;tooltips&nbsp;were&nbsp;a&nbsp;built&nbsp;in&nbsp;feature,&nbsp;in&nbsp;fact&nbsp;there&nbsp;was&nbsp;an&nbsp;ability&nbsp;to&nbsp;provide&nbsp;a&nbsp;custom&nbsp;tool&nbsp;tip&nbsp;control.&nbsp;&nbsp;I&nbsp;used&nbsp;that&nbsp;pretty&nbsp;heavily&nbsp;and&nbsp;users&nbsp;really&nbsp;like&nbsp;it.&nbsp;&nbsp;Now&nbsp;in&nbsp;the&nbsp;3.0&nbsp;version&nbsp;i&nbsp;see&nbsp;you&nbsp;have&nbsp;decided&nbsp;to&nbsp;remove&nbsp;that&nbsp;functionality.&nbsp;&nbsp;To&nbsp;emulate&nbsp;similar&nbsp;functionality&nbsp;i'm&nbsp;subscribing&nbsp;to&nbsp;the&nbsp;Map.MouseMove&nbsp;event&nbsp;getting&nbsp;the&nbsp;mouse&nbsp;coordinates&nbsp;and&nbsp;converting&nbsp;it&nbsp;into&nbsp;a&nbsp;PointShape&nbsp;using&nbsp;Extent&nbsp;Helper,&nbsp;then&nbsp;ultimately&nbsp;having&nbsp;to&nbsp;do&nbsp;a&nbsp;query&nbsp;like...

&nbsp;

\<Feature\>&nbsp;features&nbsp;=&nbsp;fLayer.QueryTools.GetFeaturesContaining(new&nbsp;string[]&nbsp;{toolTipField&nbsp;}&nbsp;);

&nbsp;

The&nbsp;problem&nbsp;i'm&nbsp;running&nbsp;into&nbsp;is&nbsp;this&nbsp;query&nbsp;in&nbsp;a&nbsp;larger&nbsp;layer&nbsp;file&nbsp;with&nbsp;say&nbsp;50,000&nbsp;polygons&nbsp;seems&nbsp;to&nbsp;be&nbsp;really&nbsp;slowing&nbsp;down&nbsp;the&nbsp;performance.

Can&nbsp;you&nbsp;recommend&nbsp;what&nbsp;the&nbsp;best&nbsp;way&nbsp;would&nbsp;be&nbsp;to&nbsp;now&nbsp;do&nbsp;a&nbsp;tooltip&nbsp;and&nbsp;to&nbsp;to&nbsp;get&nbsp;a&nbsp;field&nbsp;out&nbsp;of&nbsp;the&nbsp;shapefile&nbsp;to&nbsp;display&nbsp;for&nbsp;a&nbsp;tooltip.&nbsp;&nbsp;MouseMove&nbsp;fires&nbsp;\*very\*&nbsp;often&nbsp;and&nbsp;i&nbsp;think&nbsp;is&nbsp;dragging&nbsp;it&nbsp;down&nbsp;in&nbsp;performance

&nbsp;

Thanks,

Chad

&nbsp;

pointShape,

Collection

---

<div class="post-metadata">

**Author:** ![charryman](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/charryman/32/25013_2.png) [@charryman](https://community.thinkgeo.com/u/charryman)\
**Post date:** [January 31, 2009, 7:00pm UTC](https://community.thinkgeo.com/t/tooltips/199/2 "2009-01-31T19:00:59Z")

</div>

nevermind,&nbsp;i&nbsp;didnt&nbsp;have&nbsp;an&nbsp;index&nbsp;file&nbsp;on&nbsp;the&nbsp;shape&nbsp;file.&nbsp;&nbsp;adding&nbsp;one&nbsp;made&nbsp;a&nbsp;huge&nbsp;difference.&nbsp;&nbsp;i&nbsp;dont&nbsp;think&nbsp;this&nbsp;an&nbsp;issue&nbsp;anymore.

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [January 31, 2009, 7:35pm UTC](https://community.thinkgeo.com/t/tooltips/199/3 "2009-01-31T19:35:21Z")

</div>

Chad,&nbsp;  
&nbsp;&nbsp;  
&nbsp;That’s&nbsp;great.&nbsp;Index&nbsp;file&nbsp;is&nbsp;very&nbsp;important&nbsp;for&nbsp;Shape&nbsp;File&nbsp;data&nbsp;and&nbsp;we&nbsp;always&nbsp;recommend&nbsp;generating&nbsp;it&nbsp;before&nbsp;using&nbsp;the&nbsp;data.&nbsp;Anytime&nbsp;you&nbsp;have&nbsp;a&nbsp;performance&nbsp;issue&nbsp;with&nbsp;shape&nbsp;file,&nbsp;please&nbsp;always&nbsp;check&nbsp;first&nbsp;whether&nbsp;the&nbsp;index&nbsp;file&nbsp;is&nbsp;there.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Ben.&nbsp;

---

<div class="post-metadata">

**Author:** ![David](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@David](https://community.thinkgeo.com/u/David)\
**Post date:** [January 31, 2009, 11:06pm UTC](https://community.thinkgeo.com/t/tooltips/199/4 "2009-01-31T23:06:23Z")

</div>

Chad,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;am&nbsp;pretty&nbsp;sure&nbsp;that&nbsp;if&nbsp;you&nbsp;do&nbsp;not&nbsp;have&nbsp;an&nbsp;index&nbsp;file&nbsp;it&nbsp;will&nbsp;throw&nbsp;and&nbsp;exception&nbsp;and&nbsp;you&nbsp;specifically&nbsp;need&nbsp;to&nbsp;override&nbsp;it&nbsp;with&nbsp;a&nbsp;property&nbsp;set.&nbsp;&nbsp;Did&nbsp;you&nbsp;do&nbsp;this?&nbsp;&nbsp;Maybe&nbsp;the&nbsp;exception&nbsp;message&nbsp;was&nbsp;not&nbsp;really&nbsp;clear&nbsp;that&nbsp;you&nbsp;needed&nbsp;it&nbsp;for&nbsp;speed?&nbsp;&nbsp;I&nbsp;want&nbsp;to&nbsp;make&nbsp;sure&nbsp;we&nbsp;have&nbsp;good&nbsp;exception&nbsp;messages.&nbsp;&nbsp;Do&nbsp;you&nbsp;&nbsp;have&nbsp;any&nbsp;suggestions&nbsp;on&nbsp;how&nbsp;we&nbsp;could&nbsp;make&nbsp;that&nbsp;message&nbsp;better?&nbsp;  
&nbsp;&nbsp;  
&nbsp;David

---

<div class="post-metadata">

**Author:** ![charryman](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/charryman/32/25013_2.png) [@charryman](https://community.thinkgeo.com/u/charryman)\
**Post date:** [February 1, 2009, 8:39am UTC](https://community.thinkgeo.com/t/tooltips/199/5 "2009-02-01T08:39:30Z")

</div>

actually&nbsp;i&nbsp;was&nbsp;explicitly&nbsp;setting&nbsp;RequireIndex&nbsp;(or&nbsp;something&nbsp;like&nbsp;that)&nbsp;on&nbsp;the&nbsp;shapefile&nbsp;to&nbsp;false&nbsp;so&nbsp;i&nbsp;wasnt&nbsp;getting&nbsp;the&nbsp;exception.

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [February 2, 2009, 3:00am UTC](https://community.thinkgeo.com/t/tooltips/199/6 "2009-02-02T03:00:13Z")

</div>

That&nbsp;makes&nbsp;sense.&nbsp;That’s&nbsp;one&nbsp;way&nbsp;avoid&nbsp;throwing&nbsp;the&nbsp;exception&nbsp;if&nbsp;you&nbsp;just&nbsp;need&nbsp;to&nbsp;do&nbsp;some&nbsp;simple&nbsp;test&nbsp;with&nbsp;the&nbsp;data,&nbsp;we&nbsp;still&nbsp;recommend&nbsp;to&nbsp;generate&nbsp;the&nbsp;index&nbsp;file&nbsp;for&nbsp;most&nbsp;cases.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Ben
