# VB.NET quickstart

**URL:** <https://community.thinkgeo.com/t/vb-net-quickstart/930>\
**Category:** WinForms\
**Created:** [December 22, 2009, 1:24pm UTC](https://community.thinkgeo.com/t/vb-net-quickstart/930 "2009-12-22T13:24:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zinman](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e9a140/32.png) [@zinman](https://community.thinkgeo.com/u/zinman)\
**Post date:** [December 22, 2009, 1:24pm UTC](https://community.thinkgeo.com/t/vb-net-quickstart/930/1 "2009-12-22T13:24:39Z")

</div>

Apologies&nbsp;if&nbsp;this&nbsp;has&nbsp;been&nbsp;covered&nbsp;elsewhere.&nbsp;I&nbsp;am&nbsp;evaluating&nbsp;the&nbsp;Desktop&nbsp;edition&nbsp;.NET&nbsp;GIS&nbsp;control&nbsp;in&nbsp;Visual&nbsp;Basic&nbsp;but&nbsp;am&nbsp;not&nbsp;able&nbsp;to&nbsp;view&nbsp;the&nbsp;sample&nbsp;maps.&nbsp;All&nbsp;I&nbsp;get&nbsp;is&nbsp;a&nbsp;blank&nbsp;control&nbsp;with&nbsp;random&nbsp;'unlicensed'&nbsp;labels.

If&nbsp;I&nbsp;run&nbsp;it&nbsp;with&nbsp;the&nbsp;sample&nbsp;code&nbsp;in&nbsp;C#&nbsp;it&nbsp;works&nbsp;fine,&nbsp;however&nbsp;VB.net&nbsp;does&nbsp;not&nbsp;work.

Is&nbsp;there&nbsp;a&nbsp;quickstart&nbsp;guide&nbsp;specifically&nbsp;for&nbsp;VB?

Thanks,

DZ

---

<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:** [December 22, 2009, 6:16pm UTC](https://community.thinkgeo.com/t/vb-net-quickstart/930/2 "2009-12-22T18:16:48Z")

</div>

David,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;interests&nbsp;in&nbsp;Map&nbsp;Suite&nbsp;products&nbsp;and&nbsp;welcome&nbsp;you&nbsp;to&nbsp;ThinkGeo&nbsp;discussion&nbsp;forum.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;am&nbsp;sorry&nbsp;to&nbsp;say&nbsp;that&nbsp;in&nbsp;our&nbsp;Quick&nbsp;start,&nbsp;we&nbsp;only&nbsp;have&nbsp;the&nbsp;C#&nbsp;version&nbsp;up&nbsp;to&nbsp;now,&nbsp;while&nbsp;we&nbsp;have&nbsp;provided&nbsp;tons&nbsp;of&nbsp;[VB.net](http://VB.net)&nbsp;samples&nbsp;in&nbsp;our&nbsp;HowDoI&nbsp;samples&nbsp;guiding&nbsp;you&nbsp;doing&nbsp;very&nbsp;simple&nbsp;maps.&nbsp;  
&nbsp;&nbsp;  
&nbsp;In&nbsp;your&nbsp;description,&nbsp;I&nbsp;guess,&nbsp;you&nbsp;set&nbsp;the&nbsp;wrong&nbsp;styles&nbsp;or&nbsp;MapUint&nbsp;for&nbsp;your&nbsp;data,&nbsp;please&nbsp;double&nbsp;check,&nbsp;if&nbsp;you&nbsp;still&nbsp;cannot&nbsp;make&nbsp;it&nbsp;show,&nbsp;could&nbsp;you&nbsp;paste&nbsp;the&nbsp;C#&nbsp;version&nbsp;code&nbsp;which&nbsp;works&nbsp;and&nbsp;[VB.net](http://VB.net)&nbsp;version&nbsp;code&nbsp;which&nbsp;does&nbsp;not&nbsp;work,&nbsp;we&nbsp;can&nbsp;try&nbsp;to&nbsp;help&nbsp;you&nbsp;figure&nbsp;out&nbsp;the&nbsp;problem.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;

---

<div class="post-metadata">

**Author:** ![zinman](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e9a140/32.png) [@zinman](https://community.thinkgeo.com/u/zinman)\
**Post date:** [December 23, 2009, 9:02am UTC](https://community.thinkgeo.com/t/vb-net-quickstart/930/3 "2009-12-23T09:02:21Z")

</div>

Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;reply.&nbsp;I&nbsp;am&nbsp;new&nbsp;to&nbsp;this&nbsp;application&nbsp;and&nbsp;do&nbsp;no&nbsp;know&nbsp;what&nbsp;the&nbsp;MapUint&nbsp;property&nbsp;is.&nbsp;I&nbsp;have&nbsp;tried&nbsp;the&nbsp;‘HowDoI’&nbsp;code&nbsp;for&nbsp;VB&nbsp;and&nbsp;get&nbsp;the&nbsp;same&nbsp;result.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Here&nbsp;is&nbsp;the&nbsp;entire&nbsp;code:&nbsp;  
&nbsp;&nbsp;  
&nbsp;Imports&nbsp;System&nbsp;  
&nbsp;Imports&nbsp;System.Windows.Forms&nbsp;  
&nbsp;Imports&nbsp;ThinkGeo.MapSuite.Core&nbsp;  
&nbsp;Imports&nbsp;ThinkGeo.MapSuite.DesktopEdition&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Namespace&nbsp;VBSampleApps&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Public&nbsp;Class&nbsp;DisplayShapeMap&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inherits&nbsp;UserControl&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Public&nbsp;Sub&nbsp;New()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InitializeComponent()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;Sub&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Private&nbsp;Sub&nbsp;DisplayMap\_Load(ByVal&nbsp;sender&nbsp;As&nbsp;Object,&nbsp;ByVal&nbsp;e&nbsp;As&nbsp;EventArgs)&nbsp;Handles&nbsp;MyBase.Load&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;winformsMap1.MapUnit&nbsp;=&nbsp;GeographyUnit.DecimalDegree&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;winformsMap1.BackgroundOverlay.BackgroundBrush&nbsp;=&nbsp;New&nbsp;GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean)&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim&nbsp;worldMapKitDesktopOverlay&nbsp;As&nbsp;WorldMapKitWmsDesktopOverlay&nbsp;=&nbsp;New&nbsp;WorldMapKitWmsDesktopOverlay()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;winformsMap1.Overlays.Add(worldMapKitDesktopOverlay)&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;winformsMap1.CurrentExtent&nbsp;=&nbsp;New&nbsp;RectangleShape(-139.2,&nbsp;92.4,&nbsp;120.9,&nbsp;-93.2)&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;winformsMap1.Refresh()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;Sub&nbsp;  
&nbsp;&nbsp;  
&nbsp;#Region&nbsp;“Component&nbsp;Designer&nbsp;generated&nbsp;code”&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Private&nbsp;components&nbsp;As&nbsp;System.ComponentModel.IContainer&nbsp;=&nbsp;Nothing&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Private&nbsp;winformsMap1&nbsp;As&nbsp;WinformsMap&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;‘’’&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;‘’’&nbsp;Clean&nbsp;up&nbsp;any&nbsp;resources&nbsp;being&nbsp;used.&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;‘’’&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;‘’’&nbsp;true&nbsp;if&nbsp;managed&nbsp;resources&nbsp;should&nbsp;be&nbsp;disposed;&nbsp;otherwise,&nbsp;false.&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Protected&nbsp;Overloads&nbsp;Overrides&nbsp;Sub&nbsp;Dispose(ByVal&nbsp;disposing&nbsp;As&nbsp;Boolean)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;disposing&nbsp;AndAlso&nbsp;(components&nbsp;IsNot&nbsp;Nothing)&nbsp;Then&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;components.Dispose()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;If&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MyBase.Dispose(disposing)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;Sub&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;‘’’&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;‘’’&nbsp;Required&nbsp;method&nbsp;for&nbsp;Designer&nbsp;support&nbsp;-&nbsp;do&nbsp;not&nbsp;modify&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;‘’’&nbsp;the&nbsp;contents&nbsp;of&nbsp;this&nbsp;method&nbsp;with&nbsp;the&nbsp;code&nbsp;editor.&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;‘’’&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Private&nbsp;Sub&nbsp;InitializeComponent()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1&nbsp;=&nbsp;New&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.SuspendLayout()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;’&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'winformsMap1&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;’&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.BackColor&nbsp;=&nbsp;System.Drawing.Color.White&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.CompositingQuality&nbsp;=&nbsp;System.Drawing.Drawing2D.CompositingQuality.[Default]&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.CurrentScale&nbsp;=&nbsp;590591790&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.DrawingQuality&nbsp;=&nbsp;ThinkGeo.MapSuite.Core.DrawingQuality.[Default]&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.Location&nbsp;=&nbsp;New&nbsp;System.Drawing.Point(0,&nbsp;0)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.MapFocusMode&nbsp;=&nbsp;ThinkGeo.MapSuite.DesktopEdition.MapFocusMode.[Default]&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.MapResizeMode&nbsp;=&nbsp;ThinkGeo.MapSuite.Core.MapResizeMode.PreserveScale&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.MapUnit&nbsp;=&nbsp;ThinkGeo.MapSuite.Core.GeographyUnit.DecimalDegree&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.MaximumScale&nbsp;=&nbsp;80000000000000&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.MinimumScale&nbsp;=&nbsp;200&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.Name&nbsp;=&nbsp;“winformsMap1”&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.Size&nbsp;=&nbsp;New&nbsp;System.Drawing.Size(740,&nbsp;528)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.SmoothingMode&nbsp;=&nbsp;System.Drawing.Drawing2D.SmoothingMode.HighQuality&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.TabIndex&nbsp;=&nbsp;0&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.Text&nbsp;=&nbsp;“winformsMap1”&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.TextRenderingHint&nbsp;=&nbsp;System.Drawing.Text.TextRenderingHint.AntiAlias&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.ThreadingMode&nbsp;=&nbsp;ThinkGeo.MapSuite.DesktopEdition.MapThreadingMode.[Default]&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.winformsMap1.ZoomLevelSnapping&nbsp;=&nbsp;ThinkGeo.MapSuite.DesktopEdition.ZoomLevelSnappingMode.[Default]&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;’&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'DisplayShapeMap&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;’&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.AutoScaleDimensions&nbsp;=&nbsp;New&nbsp;System.Drawing.SizeF(6.0!,&nbsp;13.0!)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.AutoScaleMode&nbsp;=&nbsp;System.Windows.Forms.AutoScaleMode.Font&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.Controls.Add(Me.winformsMap1)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.Name&nbsp;=&nbsp;“DisplayShapeMap”&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.Size&nbsp;=&nbsp;New&nbsp;System.Drawing.Size(740,&nbsp;528)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me.ResumeLayout(False)&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;Sub&nbsp;  
&nbsp;#End&nbsp;Region&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;Class&nbsp;  
&nbsp;&nbsp;  
&nbsp;End&nbsp;Namespace&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:** [December 23, 2009, 6:32pm UTC](https://community.thinkgeo.com/t/vb-net-quickstart/930/4 "2009-12-23T18:32:48Z")

</div>

David,

Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;question.  
&nbsp;  
I&nbsp;have&nbsp;2&nbsp;things&nbsp;probably&nbsp;you&nbsp;can&nbsp;verify:  
_1)_Could&nbsp;you&nbsp;set&nbsp;a&nbsp;break&nbsp;point&nbsp;in&nbsp;_DisplayMap\_Load&nbsp;_to&nbsp;verify&nbsp;it&nbsp;is&nbsp;executed.  
_2)&nbsp;_If&nbsp;it&nbsp;is&nbsp;executed.&nbsp;Then&nbsp;could&nbsp;you&nbsp;replace&nbsp;the&nbsp;following&nbsp;code&nbsp;into&nbsp;_DisplayMap\_Load&nbsp;_to&nbsp;see&nbsp;it&nbsp;works?&nbsp;Because&nbsp;I&nbsp;doubt&nbsp;the&nbsp;network&nbsp;to&nbsp;get&nbsp;the&nbsp;image&nbsp;from&nbsp;WorldMapKit&nbsp;server&nbsp;is&nbsp;something&nbsp;wired.  
`	   winformsMap1.MapUnit = GeographyUnit.DecimalDegree            winformsMap1.BackgroundOverlay.BackgroundBrush = New GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean)             'Dim worldMapKitDesktopOverlay As New WorldMapKitWmsDesktopOverlay()            'winformsMap1.Overlays.Add(worldMapKitDesktopOverlay)             Dim worldLayer As New ShapeFileFeatureLayer("..\..\SampleData\Data\Countries02.shp")            worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Transparent, GeoColor.FromArgb(100, GeoColor.SimpleColors.Green))            worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20             Dim staticOverlay As New LayerOverlay()            staticOverlay.Layers.Add("WorldLayer", worldLayer)            winformsMap1.Overlays.Add("WorldOverlay", staticOverlay)             winformsMap1.CurrentExtent = New RectangleShape(-139.2, 92.4, 120.9, -93.2)             winformsMap1.Refresh()`  
&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:** ![zinman](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/z/e9a140/32.png) [@zinman](https://community.thinkgeo.com/u/zinman)\
**Post date:** [December 24, 2009, 8:31am UTC](https://community.thinkgeo.com/t/vb-net-quickstart/930/5 "2009-12-24T08:31:38Z")

</div>

Thanks&nbsp;Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;believe&nbsp;my&nbsp;problems&nbsp;have&nbsp;to&nbsp;do&nbsp;with&nbsp;the&nbsp;solution&nbsp;setup.&nbsp;I&nbsp;would&nbsp;like&nbsp;a&nbsp;template&nbsp;solution&nbsp;for&nbsp;[VB.net](http://VB.net)&nbsp;that&nbsp;I&nbsp;can&nbsp;use&nbsp;just&nbsp;to&nbsp;get&nbsp;started.&nbsp;The&nbsp;‘how&nbsp;do&nbsp;I’&nbsp;solution&nbsp;comes&nbsp;with&nbsp;much&nbsp;too&nbsp;much&nbsp;baggage.&nbsp;It&nbsp;should&nbsp;be&nbsp;simple&nbsp;enough&nbsp;to&nbsp;start&nbsp;with,&nbsp;and&nbsp;able&nbsp;to&nbsp;add&nbsp;features.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;DZ

---

<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:** [December 24, 2009, 9:30am UTC](https://community.thinkgeo.com/t/vb-net-quickstart/930/6 "2009-12-24T09:30:36Z")

</div>

David,&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;I&nbsp;agree&nbsp;with&nbsp;you&nbsp;that&nbsp;we&nbsp;need&nbsp;to&nbsp;include&nbsp;some&nbsp;quick&nbsp;start&nbsp;templates.&nbsp;&nbsp;These&nbsp;templates&nbsp;would&nbsp;be&nbsp;projects&nbsp;where&nbsp;someone&nbsp;starting&nbsp;a&nbsp;new&nbsp;map&nbsp;could&nbsp;get&nbsp;a&nbsp;bunch&nbsp;common&nbsp;GIS&nbsp;functionality&nbsp;etc.&nbsp;&nbsp;Let&nbsp;me&nbsp;see&nbsp;if&nbsp;we&nbsp;can&nbsp;get&nbsp;this&nbsp;project&nbsp;going.&nbsp;&nbsp;Maybe&nbsp;we&nbsp;can&nbsp;release&nbsp;this&nbsp;in&nbsp;the&nbsp;short&nbsp;term&nbsp;as&nbsp;a&nbsp;code&nbsp;community&nbsp;project.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;the&nbsp;suggestion!&nbsp;  
&nbsp;&nbsp;  
&nbsp;David
