New answers tagged

0

I got it working. Seems I had to assign my dockwindow to Nothing before I use the getDockableWindow() method. Also had to change show() method. Protected Overrides Sub OnClick() Try ' Only get/create the dockable window if it's not there Dim dockWindow As ESRI.ArcGIS.Framework.IDockableWindow dockWindow = Nothing If ...


0

Here's a complete sample that shows how to use the DockableWindowManager (C#, sorry): var w = ArcMap.DockableWindowManager.GetDockableWindow(new UIDClass { Value = ThisAddIn.IDs.DockableWindow1 }); if (w != null) { w.Show(true); } In VB.Net, the ID's are in My.ThisAddIn.IDs.


0

Works fine now. Here is the code for anyone interested. Useful if you need to copy OSGB1936 co-ordinates into Google Maps. Seems the way I was inserting the text into the clipboard was crashing ArcMap. Also should be tool not button. Protected Overrides Sub OnMouseDown(ByVal arg As ESRI.ArcGIS.Desktop.AddIns.Tool.MouseEventArgs) MyBase.OnMouseDown(arg) ...


0

This worked. As long as i didnt use the ESRI ArcMap Addin form template it was ok. With ArcMap addin forms it always gives an error about using Hooks. When you call the form must have a hook variable passed through it or something. Didnt quite understand it. But using the standard VB.net form was ok. Dim oform As New ArcMapAddin2.Form2() oform.ShowDialog() ...



Top 50 recent answers are included