# Is it possible to add Map Suite Desktop Edition 4.0 feature on top of a Map Suite Desktop Edition 2.25.5 C# application

**URL:** <https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401>\
**Category:** WinForms\
**Created:** [August 27, 2010, 1:07am UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401 "2010-08-27T01:07:25Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![franklin1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@franklin1](https://community.thinkgeo.com/u/franklin1)\
**Post date:** [August 27, 2010, 1:07am UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/1 "2010-08-27T01:07:25Z")

</div>

Hi,

&nbsp;&nbsp;&nbsp;Specifically&nbsp;we&nbsp;want&nbsp;to&nbsp;add&nbsp;"Edit&nbsp;Polygon&nbsp;Shape&nbsp;functionality"&nbsp;and&nbsp;"zoom&nbsp;in/out&nbsp;during&nbsp;Polygon&nbsp;creation"&nbsp;functionality&nbsp;on&nbsp;top&nbsp;of&nbsp;our&nbsp;existing&nbsp;map&nbsp;component&nbsp;using&nbsp;Map\_Suite\_Desktop\_Edition\_2.25.5,without&nbsp;breaking&nbsp;the&nbsp;existing&nbsp;map&nbsp;codes.  
  
Is&nbsp;there&nbsp;any&nbsp;workaround&nbsp;so&nbsp;that&nbsp;Map\_Suite\_Desktop\_Edition\_2.25.5&nbsp;(upon&nbsp;which&nbsp;the&nbsp;existing&nbsp;application&nbsp;was&nbsp;developed)&nbsp;can&nbsp;work&nbsp;together&nbsp;with&nbsp;Map\_Suite\_Desktop\_Edition\_4.0&nbsp;for&nbsp;adding&nbsp;the&nbsp;above&nbsp;two&nbsp;4.0&nbsp;features?&nbsp;You&nbsp;know&nbsp;it&nbsp;is&nbsp;costly&nbsp;if&nbsp;we&nbsp;rewrite&nbsp;the&nbsp;whole&nbsp;thing&nbsp;for&nbsp;only&nbsp;adding&nbsp;&nbsp;the&nbsp;two&nbsp;features.  
  
Has&nbsp;anyone&nbsp;out&nbsp;there&nbsp;tried&nbsp;to&nbsp;create&nbsp;two&nbsp;references&nbsp;in&nbsp;a&nbsp;C#&nbsp;application&nbsp;to&nbsp;the&nbsp;two&nbsp;dll&nbsp;representing&nbsp;the&nbsp;two&nbsp;editions&nbsp;respectively?  
  
Thanks&nbsp;very&nbsp;much.

Franklin

&nbsp;

&nbsp;

&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:** [August 27, 2010, 10:14am UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/2 "2010-08-27T10:14:10Z")

</div>

Franklin,

Thanks&nbsp;for&nbsp;your&nbsp;post.

Just&nbsp;confirm&nbsp;with&nbsp;you&nbsp;that&nbsp;how&nbsp;you&nbsp;implement&nbsp;two&nbsp;functions&nbsp;by&nbsp;using&nbsp;4.0&nbsp;and&nbsp;then&nbsp;we&nbsp;can&nbsp;consider&nbsp;if&nbsp;2.25.5&nbsp;has&nbsp;the&nbsp;way&nbsp;to&nbsp;do&nbsp;the&nbsp;same&nbsp;thing&nbsp;or&nbsp;need&nbsp;to&nbsp;add&nbsp;new&nbsp;functions.

"Edit&nbsp;Polygon&nbsp;Shape&nbsp;functionality":&nbsp;I&nbsp;think&nbsp;you&nbsp;set&nbsp;EditMode&nbsp;of&nbsp;EditOverlay&nbsp;to&nbsp;implement&nbsp;it.

"zoom&nbsp;in/out&nbsp;during&nbsp;Polygon&nbsp;creation":&nbsp;You&nbsp;set&nbsp;TrackMode&nbsp;to&nbsp;polygon&nbsp;and&nbsp;then&nbsp;track&nbsp;a&nbsp;polygon,&nbsp;you&nbsp;hookup&nbsp;the&nbsp;event,&nbsp;so&nbsp;you&nbsp;know&nbsp;when&nbsp;it&nbsp;created&nbsp;and&nbsp;at&nbsp;the&nbsp;same&nbsp;time&nbsp;you&nbsp;can&nbsp;decide&nbsp;to&nbsp;zoom&nbsp;in/out.

The&nbsp;first&nbsp;one&nbsp;is&nbsp;for&nbsp;editing,&nbsp;I&nbsp;think&nbsp;you&nbsp;can&nbsp;look&nbsp;at&nbsp;following&nbsp;posts

[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/1/aft/4721/afv/topic/Default.aspx)

[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/1/aft/4447/afv/topic/Default.aspx)

The&nbsp;second&nbsp;one&nbsp;I&nbsp;don't&nbsp;find&nbsp;any&nbsp;idea&nbsp;about&nbsp;it&nbsp;by&nbsp;using&nbsp;2.25.5&nbsp;so&nbsp;far,&nbsp;I&nbsp;will&nbsp;keep&nbsp;research&nbsp;on&nbsp;it&nbsp;and&nbsp;let&nbsp;you&nbsp;know&nbsp;the&nbsp;result.

Thanks

James

---

<div class="post-metadata">

**Author:** ![franklin1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@franklin1](https://community.thinkgeo.com/u/franklin1)\
**Post date:** [August 29, 2010, 9:14pm UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/3 "2010-08-29T21:14:23Z")

</div>

James,

Thanks&nbsp;very&nbsp;much&nbsp;for&nbsp;the&nbsp;replying.&nbsp;I&nbsp;will&nbsp;try&nbsp;out&nbsp;the&nbsp;method&nbsp;suggested&nbsp;for&nbsp;"zoom&nbsp;in/out&nbsp;during&nbsp;Polygon&nbsp;Creation".

To&nbsp;implement&nbsp;"Edit&nbsp;Polygon&nbsp;Shape&nbsp;functionality"&nbsp;in&nbsp;4.0,&nbsp;&nbsp;the&nbsp;code&nbsp;would&nbsp;be&nbsp;something&nbsp;like:

winformsMap1.EditOverlay.EditShapesLayer,&nbsp;where&nbsp;winformsMap1&nbsp;is&nbsp;defined&nbsp;as&nbsp;a&nbsp;member&nbsp;in&nbsp;"UserControl"&nbsp;via&nbsp;CreateAnInMemoryFeatureLayer:&nbsp;UseControl

However,&nbsp;in&nbsp;order&nbsp;to&nbsp;use&nbsp;the&nbsp;code&nbsp;above,&nbsp;it&nbsp;is&nbsp;necessary&nbsp;to&nbsp;add&nbsp;a&nbsp;new&nbsp;reference&nbsp;pointing&nbsp;to&nbsp;4.0&nbsp;DesktopEdition&nbsp;dll

Since&nbsp;we&nbsp;don't&nbsp;want&nbsp;to&nbsp;break&nbsp;the&nbsp;existing&nbsp;2.25.5&nbsp;code,&nbsp;the&nbsp;existing&nbsp;2.25.5&nbsp;DesktopEdition&nbsp;dll&nbsp;reference&nbsp;should&nbsp;still&nbsp;be&nbsp;there.My&nbsp;concern&nbsp;is:&nbsp;is&nbsp;it&nbsp;an&nbsp;issue&nbsp;to&nbsp;use&nbsp;the&nbsp;two&nbsp;references&nbsp;under&nbsp;same&nbsp;name&nbsp;"DesktopEdition"?&nbsp;Or&nbsp;have&nbsp;you&nbsp;got&nbsp;other&nbsp;method&nbsp;to&nbsp;allow&nbsp;the&nbsp;4.0&nbsp;"Edit&nbsp;Polygon&nbsp;Shape&nbsp;Functionality"&nbsp;coexist&nbsp;with&nbsp;the&nbsp;2.25.5&nbsp;functionalities&nbsp;already&nbsp;in&nbsp;the&nbsp;application?

Thanks&nbsp;a&nbsp;lot&nbsp;for&nbsp;the&nbsp;help.

Franklin

&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:** [August 30, 2010, 1:32pm UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/4 "2010-08-30T13:32:45Z")

</div>

Franklin,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;you&nbsp;can&nbsp;change&nbsp;one&nbsp;name&nbsp;and&nbsp;then&nbsp;you&nbsp;can&nbsp;add&nbsp;them&nbsp;to&nbsp;reference,&nbsp;but&nbsp;it&nbsp;might&nbsp;not&nbsp;good&nbsp;idea.&nbsp;2.55.5&nbsp;is&nbsp;the&nbsp;second&nbsp;generation&nbsp;product&nbsp;of&nbsp;MapSuite,&nbsp;right&nbsp;now&nbsp;we&nbsp;support&nbsp;4.0&nbsp;which&nbsp;is&nbsp;fourth&nbsp;generation&nbsp;products,&nbsp;so&nbsp;you’re&nbsp;better&nbsp;to&nbsp;upgrade&nbsp;your&nbsp;MapSuite,&nbsp;the&nbsp;current&nbsp;one&nbsp;is&nbsp;more&nbsp;flexiable&nbsp;so&nbsp;that&nbsp;even&nbsp;there&nbsp;is&nbsp;no&nbsp;function&nbsp;to&nbsp;do&nbsp;your&nbsp;requirement,&nbsp;you&nbsp;can&nbsp;extend&nbsp;it&nbsp;to&nbsp;implement&nbsp;by&nbsp;many&nbsp;ways.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;  
&nbsp;James

---

<div class="post-metadata">

**Author:** ![franklin1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@franklin1](https://community.thinkgeo.com/u/franklin1)\
**Post date:** [September 2, 2010, 3:15am UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/5 "2010-09-02T03:15:35Z")

</div>

Hi&nbsp;James,

Managed&nbsp;to&nbsp;get&nbsp;the&nbsp;application&nbsp;built&nbsp;up&nbsp;successfully&nbsp;with&nbsp;references&nbsp;to&nbsp;2.55.5&nbsp;and&nbsp;4.0&nbsp;dll(uder&nbsp;a&nbsp;different&nbsp;name:&nbsp;DesktopEditionNew).  
  
I&nbsp;am&nbsp;not&nbsp;so&nbsp;clear&nbsp;about&nbsp;how&nbsp;you&nbsp;instantiate&nbsp;WinformsMap.&nbsp;Tried&nbsp;to&nbsp;use:

ThinkGeo.MapSuite.DesktopEdition.WinformsMap&nbsp;winMap1&nbsp;=&nbsp;new&nbsp;WinformsMap();&nbsp;//&nbsp;is&nbsp;this&nbsp;OK,&nbsp;although&nbsp;compilation&nbsp;goes&nbsp;through?

But&nbsp;during&nbsp;runtime,&nbsp;stepping&nbsp;over&nbsp;the&nbsp;breakpoint&nbsp;at&nbsp;this&nbsp;statement&nbsp;suggests&nbsp;something&nbsp;wrong:&nbsp;an&nbsp;unexpected&nbsp;exception&nbsp;happend&nbsp;and&nbsp;the&nbsp;application&nbsp;exited.What&nbsp;would&nbsp;you&nbsp;do&nbsp;to&nbsp;instantiate&nbsp;winMap1&nbsp;to&nbsp;invoke&nbsp;4.0&nbsp;functionality?

Thanks.

Franklin

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&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:** [September 2, 2010, 9:04am UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/6 "2010-09-02T09:04:35Z")

</div>

Franklin,

About&nbsp;&nbsp;instantiate&nbsp;WinformsMap,&nbsp;usually&nbsp;we&nbsp;recommand&nbsp;the&nbsp;users&nbsp;drag&nbsp;the&nbsp;map&nbsp;control&nbsp;and&nbsp;drop&nbsp;to&nbsp;the&nbsp;form,&nbsp;it&nbsp;will&nbsp;instantiate&nbsp;by&nbsp;visual&nbsp;studio.&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;do&nbsp;it&nbsp;by&nbsp;your&nbsp;own&nbsp;code,&nbsp;I&nbsp;think&nbsp;you&nbsp;can&nbsp;follow&nbsp;the&nbsp;sample&nbsp;code&nbsp;below:

`            //             // winformsMap1            //             this.winformsMap1.BackColor = System.Drawing.Color.Gray;            this.winformsMap1.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.Default;            this.winformsMap1.CurrentScale = 590591790;            this.winformsMap1.Dock = System.Windows.Forms.DockStyle.Fill;            this.winformsMap1.DrawingQuality = ThinkGeo.MapSuite.Core.DrawingQuality.Default;            this.winformsMap1.Location = new System.Drawing.Point(0, 0);            this.winformsMap1.MapFocusMode = ThinkGeo.MapSuite.DesktopEdition.MapFocusMode.Default;            this.winformsMap1.MapResizeMode = ThinkGeo.MapSuite.Core.MapResizeMode.PreserveScale;            this.winformsMap1.MapUnit = ThinkGeo.MapSuite.Core.GeographyUnit.DecimalDegree;            this.winformsMap1.MaximumScale = 80000000000000;            this.winformsMap1.MinimumScale = 200;            this.winformsMap1.Name = "winformsMap1";            this.winformsMap1.Size = new System.Drawing.Size(740, 740);            this.winformsMap1.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;            this.winformsMap1.TabIndex = 0;            this.winformsMap1.Text = "winformsMap1";            this.winformsMap1.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;            this.winformsMap1.ThreadingMode = ThinkGeo.MapSuite.DesktopEdition.MapThreadingMode.Default;            this.winformsMap1.ZoomLevelSnapping = ThinkGeo.MapSuite.DesktopEdition.ZoomLevelSnappingMode.Default;`

Thanks

James

---

<div class="post-metadata">

**Author:** ![franklin1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@franklin1](https://community.thinkgeo.com/u/franklin1)\
**Post date:** [September 6, 2010, 4:40am UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/7 "2010-09-06T04:40:22Z")

</div>

James,

In&nbsp;&nbsp;CSharp(VS&nbsp;2008&nbsp;Winforms)WindowsHowDoISamples&nbsp;project,&nbsp;where&nbsp;can&nbsp;i&nbsp;find&nbsp;the&nbsp;form&nbsp;on&nbsp;which&nbsp;you&nbsp;drag&nbsp;and&nbsp;drop&nbsp;the&nbsp;WindowFormsMap&nbsp;customer&nbsp;control?&nbsp;I&nbsp;am&nbsp;trying&nbsp;to&nbsp;relate&nbsp;the&nbsp;recommended&nbsp;instantiation&nbsp;method&nbsp;to&nbsp;a&nbsp;real&nbsp;sample&nbsp;which&nbsp;comes&nbsp;with&nbsp;Map&nbsp;Suite&nbsp;4.0&nbsp;Desktop&nbsp;Edition&nbsp;trial&nbsp;download.

Thanks.

&nbsp;

Franklin

&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:** [September 6, 2010, 8:13am UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/8 "2010-09-06T08:13:33Z")

</div>

Franklin,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;post.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Following&nbsp;code&nbsp;samples&nbsp;in&nbsp;our&nbsp;code&nbsp;snippet&nbsp;shows&nbsp;you&nbsp;the&nbsp;way&nbsp;to&nbsp;drag&nbsp;and&nbsp;drop,&nbsp;you&nbsp;are&nbsp;probablly&nbsp;need&nbsp;to&nbsp;referece&nbsp;the&nbsp;DLLs&nbsp;to&nbsp;make&nbsp;it&nbsp;can&nbsp;compile&nbsp;and&nbsp;run.&nbsp;  
&nbsp;[code.thinkgeo.com/projects/list\_files/centeringtolerance](http://code.thinkgeo.com/projects/list_files/centeringtolerance)&nbsp;  
&nbsp;[code.thinkgeo.com/projects/show/trackoverlayescnew](http://code.thinkgeo.com/projects/show/trackoverlayescnew)&nbsp;  
&nbsp;[code.thinkgeo.com/projects/show/draggingvertex](http://code.thinkgeo.com/projects/show/draggingvertex)(need&nbsp;4.0.66.0&nbsp;or&nbsp;higher&nbsp;version)&nbsp;  
&nbsp;&nbsp;  
&nbsp;Anything&nbsp;I&nbsp;am&nbsp;not&nbsp;clear&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:** ![franklin1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@franklin1](https://community.thinkgeo.com/u/franklin1)\
**Post date:** [September 6, 2010, 8:49pm UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/9 "2010-09-06T20:49:27Z")

</div>

Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;was&nbsp;referring&nbsp;to&nbsp;Map&nbsp;Suite&nbsp;DesktopEdition\Samples\CSharp&nbsp;2008&nbsp;Winforms.Microsoft&nbsp;Visual&nbsp;Studio&nbsp;Solution.&nbsp;In&nbsp;that&nbsp;context,&nbsp;where&nbsp;can&nbsp;i&nbsp;find&nbsp;the&nbsp;form&nbsp;on&nbsp;which&nbsp;you&nbsp;drag&nbsp;and&nbsp;drop&nbsp;the&nbsp;WindowFormsMap&nbsp;custom&nbsp;control?&nbsp;I&nbsp;have&nbsp;no&nbsp;problem&nbsp;in&nbsp;following&nbsp;the&nbsp;procedure&nbsp;for&nbsp;creating&nbsp;the&nbsp;map&nbsp;control&nbsp;as&nbsp;described&nbsp;in&nbsp;[gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/20/aft/4804/afv/topic/Default.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/20/aft/4804/afv/topic/Default.aspx)&nbsp;  
&nbsp;In&nbsp;the&nbsp;CSharp&nbsp;2008&nbsp;Winforms&nbsp;sample,&nbsp;i&nbsp;cannot&nbsp;find&nbsp;the&nbsp;form&nbsp;on&nbsp;which&nbsp;the&nbsp;map&nbsp;control&nbsp;is&nbsp;dropped&nbsp;so&nbsp;as&nbsp;to&nbsp;complete&nbsp;the&nbsp;recommended&nbsp;instantiation&nbsp;method&nbsp;above.&nbsp;Can&nbsp;you&nbsp;shed&nbsp;light&nbsp;on&nbsp;this?&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Franklin

---

<div class="post-metadata">

**Author:** ![franklin1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@franklin1](https://community.thinkgeo.com/u/franklin1)\
**Post date:** [September 6, 2010, 8:56pm UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/10 "2010-09-06T20:56:03Z")

</div>

Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;I&nbsp;got&nbsp;it&nbsp;from&nbsp;LoadAMapFromStreams.cs[design]&nbsp;in&nbsp;that&nbsp;project&nbsp;space.&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Franklin

---

<div class="post-metadata">

**Author:** ![franklin1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@franklin1](https://community.thinkgeo.com/u/franklin1)\
**Post date:** [September 6, 2010, 10:09pm UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/11 "2010-09-06T22:09:45Z")

</div>

Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;a&nbsp;class&nbsp;is&nbsp;not&nbsp;derived&nbsp;from&nbsp;UserControl,&nbsp;how&nbsp;should&nbsp;the&nbsp;above&nbsp;drag-and-drop&nbsp;instantiation&nbsp;method&nbsp;be&nbsp;adapted&nbsp;to&nbsp;&nbsp;create&nbsp;a&nbsp;winformsMap&nbsp;instance&nbsp;in&nbsp;that&nbsp;class?&nbsp;I&nbsp;have&nbsp;the&nbsp;instantiation&nbsp;problem&nbsp;in&nbsp;that&nbsp;particular&nbsp;scenario&nbsp;mentioned&nbsp;earlier.&nbsp;&nbsp;  
&nbsp;As&nbsp;you&nbsp;may&nbsp;notice,&nbsp;the&nbsp;2.55.5&nbsp;version&nbsp;doesn’t&nbsp;have&nbsp;this&nbsp;instantiation&nbsp;restriction&nbsp;and&nbsp;i&nbsp;am&nbsp;trying&nbsp;to&nbsp;fit&nbsp;the&nbsp;winformMap&nbsp;instance&nbsp;into&nbsp;an&nbsp;ordinary&nbsp;C#&nbsp;class&nbsp;which&nbsp;is&nbsp;not&nbsp;derived&nbsp;from&nbsp;UserControl&nbsp;in&nbsp;our&nbsp;existing&nbsp;map&nbsp;software&nbsp;architecture.&nbsp;&nbsp;  
&nbsp;Can&nbsp;you&nbsp;give&nbsp;me&nbsp;an&nbsp;example&nbsp;in&nbsp;this&nbsp;respect?&nbsp;  
&nbsp;Thank&nbsp;a&nbsp;lot&nbsp;for&nbsp;your&nbsp;help.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Franklin

---

<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 7, 2010, 7:54am UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/12 "2010-09-07T07:54:36Z")

</div>

Franklin,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;we&nbsp;are&nbsp;thinking&nbsp;differently&nbsp;somehow.&nbsp;In&nbsp;my&nbsp;understanding,&nbsp;the&nbsp;winforms&nbsp;Map&nbsp;control&nbsp;is&nbsp;a&nbsp;control&nbsp;which&nbsp;should&nbsp;be&nbsp;placed&nbsp;on&nbsp;a&nbsp;control&nbsp;container&nbsp;like&nbsp;a&nbsp;UserControl&nbsp;or&nbsp;Windows&nbsp;Form.&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;draw&nbsp;inside&nbsp;a&nbsp;class&nbsp;which&nbsp;is&nbsp;not&nbsp;a&nbsp;control&nbsp;container,&nbsp;we&nbsp;may&nbsp;need&nbsp;to&nbsp;use&nbsp;the&nbsp;MapEngine&nbsp;like&nbsp;how&nbsp;it&nbsp;is&nbsp;done&nbsp;Service&nbsp;Edition&nbsp;instead&nbsp;of&nbsp;using&nbsp;the&nbsp;MapControl&nbsp;directly.&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;I&nbsp;am&nbsp;misunderstanding&nbsp;anything,&nbsp;please&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:** ![franklin1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@franklin1](https://community.thinkgeo.com/u/franklin1)\
**Post date:** [September 7, 2010, 9:11pm UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/13 "2010-09-07T21:11:17Z")

</div>

Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thanks&nbsp;for&nbsp;making&nbsp;the&nbsp;point&nbsp;of&nbsp;using&nbsp;MapEngine&nbsp;in&nbsp;this&nbsp;scenario.&nbsp;In&nbsp;our&nbsp;existing&nbsp;map&nbsp;application&nbsp;we&nbsp;adopt&nbsp;a&nbsp;Model-View-Presenter&nbsp;architecture&nbsp;which&nbsp;MapSuite-2.55.5-desktop-based&nbsp;map&nbsp;module&nbsp;can&nbsp;fit&nbsp;well&nbsp;into.&nbsp;My&nbsp;question&nbsp;is:&nbsp;which&nbsp;product&nbsp;will&nbsp;be&nbsp;more&nbsp;suitable&nbsp;to&nbsp;fit&nbsp;into&nbsp;the&nbsp;Model-View-Presenter&nbsp;architecture,&nbsp;MapSuite&nbsp;&nbsp;4.0&nbsp;Desktop&nbsp;Edition&nbsp;or&nbsp;Service&nbsp;Edition?&nbsp;What&nbsp;are&nbsp;the&nbsp;&nbsp;scenarios&nbsp;for&nbsp;using&nbsp;Service?&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;frranklin

---

<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 8, 2010, 8:39am UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/14 "2010-09-08T08:39:40Z")

</div>

Franklin,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;am&nbsp;afraid&nbsp;we&nbsp;made&nbsp;some&nbsp;different&nbsp;understandings&nbsp;in&nbsp;some&nbsp;places.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;agree&nbsp;with&nbsp;you&nbsp;to&nbsp;choose&nbsp;Desktop&nbsp;control&nbsp;instead&nbsp;of&nbsp;using&nbsp;Service&nbsp;APIs&nbsp;to&nbsp;build&nbsp;up&nbsp;the&nbsp;Model-View-Presenter&nbsp;&nbsp;architecture,&nbsp;it&nbsp;will&nbsp;save&nbsp;a&nbsp;lot&nbsp;of&nbsp;time&nbsp;for&nbsp;it&nbsp;is&nbsp;an&nbsp;easy&nbsp;drag-drop&nbsp;control.&nbsp;&nbsp;  
&nbsp;The&nbsp;different&nbsp;between&nbsp;Desktop&nbsp;Edition&nbsp;and&nbsp;Service&nbsp;Edition&nbsp;is&nbsp;very&nbsp;similar&nbsp;to&nbsp;the&nbsp;Window32&nbsp;APIs&nbsp;and&nbsp;Windows&nbsp;Operating&nbsp;system,&nbsp;all&nbsp;the&nbsp;powerful&nbsp;functionalities&nbsp;built&nbsp;on&nbsp;Desktop&nbsp;Edition&nbsp;is&nbsp;built&nbsp;based&nbsp;on&nbsp;the&nbsp;Service&nbsp;APIs.&nbsp;And&nbsp;Desktop&nbsp;edition&nbsp;is&nbsp;an&nbsp;available&nbsp;control&nbsp;which&nbsp;you&nbsp;can&nbsp;easily&nbsp;drag&nbsp;and&nbsp;drop&nbsp;into&nbsp;other&nbsp;control&nbsp;containers.&nbsp;The&nbsp;advantages&nbsp;of&nbsp;Service&nbsp;editions&nbsp;is&nbsp;its&nbsp;powerful&nbsp;APIs&nbsp;and&nbsp;rich&nbsp;extensibility,&nbsp;you&nbsp;can&nbsp;easily&nbsp;extend&nbsp;it&nbsp;by&nbsp;writing&nbsp;your&nbsp;own&nbsp;source&nbsp;/layer/style&nbsp;etc.&nbsp;You&nbsp;even&nbsp;can&nbsp;built&nbsp;your&nbsp;own&nbsp;Dekstop&nbsp;&nbsp;UI&nbsp;control&nbsp;based&nbsp;on&nbsp;it.&nbsp;  
&nbsp;&nbsp;  
&nbsp;One&nbsp;thing&nbsp;I&nbsp;am&nbsp;not&nbsp;100%&nbsp;sure&nbsp;is&nbsp;when&nbsp;you&nbsp;use&nbsp;the&nbsp;2.55.5&nbsp;desktop&nbsp;control,&nbsp;how&nbsp;you&nbsp;drag&nbsp;and&nbsp;drop&nbsp;for&nbsp;it?&nbsp;I&nbsp;think&nbsp;4.0.0&nbsp;map&nbsp;control&nbsp;should&nbsp;exactly&nbsp;the&nbsp;same&nbsp;way.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;questions&nbsp;please&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:** ![franklin1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@franklin1](https://community.thinkgeo.com/u/franklin1)\
**Post date:** [September 13, 2010, 8:50pm UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/15 "2010-09-13T20:50:47Z")

</div>

Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;For&nbsp;4.0&nbsp;desktop&nbsp;map&nbsp;control,&nbsp;the&nbsp;recommended&nbsp;way&nbsp;for&nbsp;instantiating&nbsp;WinformsMap&nbsp;is&nbsp;to&nbsp;drag&nbsp;it&nbsp;from&nbsp;toolbox&nbsp;and&nbsp;drop&nbsp;it&nbsp;to&nbsp;a&nbsp;form.&nbsp;  
&nbsp;My&nbsp;concern&nbsp;is&nbsp;1.)&nbsp;will&nbsp;this&nbsp;drag-drop&nbsp;instantiation&nbsp;create&nbsp;a&nbsp;lot&nbsp;of&nbsp;overhead&nbsp;in&nbsp;a&nbsp;multithreaded&nbsp;Map&nbsp;application&nbsp;using&nbsp;Composite&nbsp;GUI&nbsp;Application&nbsp;Block&nbsp;architecture&nbsp;(CAB)?&nbsp;2.)&nbsp;will&nbsp;the&nbsp;4.0&nbsp;Service&nbsp;be&nbsp;a&nbsp;better&nbsp;candidate&nbsp;for&nbsp;fitting&nbsp;into&nbsp;the&nbsp;CAB&nbsp;architecture&nbsp;because&nbsp;&nbsp;the&nbsp;MapEngine&nbsp;instantiation&nbsp;method&nbsp;is&nbsp;more&nbsp;flexible&nbsp;in&nbsp;this&nbsp;context?&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Franklin

---

<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 14, 2010, 8:57am UTC](https://community.thinkgeo.com/t/is-it-possible-to-add-map-suite-desktop-edition-4-0-feature-on-top-of-a-map-suite-desktop-edition-2-25-5-c-application/1401/16 "2010-09-14T08:57:15Z")

</div>

Franklin,

Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;feedback.  
&nbsp;  
As&nbsp;my&nbsp;understanding,&nbsp;Composite&nbsp;UI&nbsp;Application&nbsp;Block&nbsp;(CAB)&nbsp;is&nbsp;intended&nbsp;to&nbsp;provide&nbsp;proven&nbsp;practices&nbsp;to&nbsp;build&nbsp;complex&nbsp;UIs&nbsp;based&nbsp;on&nbsp;simpler&nbsp;“parts”.&nbsp;So&nbsp;I&nbsp;would&nbsp;rather&nbsp;to&nbsp;say&nbsp;that&nbsp;choosing&nbsp;desktop&nbsp;edition&nbsp;map&nbsp;control&nbsp;or&nbsp;service&nbsp;map&nbsp;control&nbsp;depends&nbsp;on&nbsp;what&nbsp;functionalities&nbsp;we&nbsp;want&nbsp;to&nbsp;get&nbsp;from&nbsp;the&nbsp;MapControl.&nbsp;For&nbsp;example,&nbsp;if&nbsp;we&nbsp;want&nbsp;the&nbsp;Track&nbsp;and&nbsp;Edit&nbsp;shapes&nbsp;integrated,&nbsp;I&nbsp;say&nbsp;we&nbsp;probably&nbsp;need&nbsp;to&nbsp;desktop&nbsp;edition&nbsp;instead&nbsp;of&nbsp;service&nbsp;edition,&nbsp;we&nbsp;have&nbsp;discussed&nbsp;this&nbsp;in&nbsp;our&nbsp;another&nbsp;threading&nbsp;post.&nbsp;If&nbsp;we&nbsp;just&nbsp;want&nbsp;to&nbsp;show&nbsp;map&nbsp;or&nbsp;navigate&nbsp;map,&nbsp;we&nbsp;probably&nbsp;can&nbsp;choose&nbsp;service&nbsp;edition.&nbsp;From&nbsp;the&nbsp;HowDoI&nbsp;samples&nbsp;attached&nbsp;in&nbsp;our&nbsp;service&nbsp;edition&nbsp;packaged,&nbsp;you&nbsp;can&nbsp;see&nbsp;bunch&nbsp;of&nbsp;examples&nbsp;showing&nbsp;the&nbsp;way&nbsp;drawing&nbsp;on&nbsp;the&nbsp;picture&nbsp;box&nbsp;with&nbsp;the&nbsp;service&nbsp;APIs.  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale
