Hi Nick,I'm using this Gallery Walkthrough and find its working fine for me in 2D and 3D views, in Visual Studio Express 2008. Clicking the drop-down list in the gallery, choose the Gallery item with the Information symbol, and you will see the mouse cursor changes to a cross-hair when you hover over the map. Then click on the map somewhere, and you should see a 'ray' display effect indicating where you clicked, and the information symbol is added to the map. If you show the gallery, but dont select a gallery item, then when you click on the map you will not see any 'ray' feedback highlighting where you just clicked, and the mouse cursor remains as a hand, indicating the map is just navigating. Could this possibly be what happened?If not, then ideally next you would debug the add-in - Visual Studio Express however does not offer out of the box functionality to debug DLLs within other EXEs, like you have with add-in projects. You can do the kind of 'debugging' where you show a lot of message boxes so you can see each line of code working - this would be worth a try - I have added some suggested things to check in the code below, taken from the Gallery class - recompile the add-in and give it another go.Public Class Gallery
Inherits ESRI.ArcGISExplorer.Application.Gallery
'Use the ArcGIS_E3SDK environment variable here. It points to the install
'location of the ArcGIS Explorer developer kit, i.e. C:\Program Files\Explorer\DeveloperKit.
Dim _strImage As String = Environment.GetEnvironmentVariable("ArcGIS_E3SDK") + "\\..\\Styles\\SymbolImages\\Points of Interest\\Information.png"
Public Sub New()
Dim envVar As String = Environment.GetEnvironmentVariable("ArcGIS_E3SDK")
System.Windows.Forms.MessageBox.Show(String.Format("Check Environment Variable points to DeveloperKit location on disk: {0}", envVar))
Dim btnImage As Image = Image.FromFile(_strImage)
If (btnImage Is Nothing) Then
System.Windows.Forms.MessageBox.Show("btnImage is Nothing")
End If
Dim myGalleryItem As GalleryItem = New GalleryItem("MyGalleryItem", btnImage, "Click on the map to add graphic")
Me.Items.Add(myGalleryItem)
If (Not Me.Items.Count = 1) Then
System.Windows.Forms.MessageBox.Show("Did not find 1 GalleryItem")
End If
End Sub
Public Overrides Sub OnClick(ByVal item As GalleryItem)
Dim md As MapDisplay = Application.ActiveMapDisplay
'Track the point on the map of the mouse click
Dim trackPoint As ESRI.ArcGISExplorer.Geometry.Point = md.TrackPoint()
If (trackPoint Is Nothing) Then
System.Windows.Forms.MessageBox.Show("Tracked Point is nothing")
ElseIf (trackPoint.IsEmpty) Then
System.Windows.Forms.MessageBox.Show("Tracked Point has no geometry")
End If
'Turn the Point in to a Graphic
Dim pointGraphic As Graphic = New Graphic(trackPoint)
If (md Is Nothing) Then
System.Windows.Forms.MessageBox.Show("New Graphic is nothing")
End If
'Set the Graphic's symbol to the same as the Gallery Image (Access the Symbol through Marker)
pointGraphic.Symbol = Symbol.Marker.PointsOfInterest.Information
If (pointGraphic.Symbol Is Nothing) Then
System.Windows.Forms.MessageBox.Show("Graphic Symbol is nothing")
End If
'Add the graphic to the map
md.Graphics.Add(pointGraphic)
System.Windows.Forms.MessageBox.Show(String.Format("Number of graphics in map = {0}", md.Graphics.Count))
End Sub
End Class