Questions tagged [vb.net]

An object-oriented programming language from Microsoft. It is the .NET version of the Visual Basic (VB) programming language.

32 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
1k views

Add WMS Layer into map using Arcobjects

I am going to add a wms layer to my existing map.I use this code: public load_wms(ESRI.ArcGIS.Controls.AxMapControl mapcontrol) { // Create an WMSMapLayer Instance - this will be ...
3
votes
0answers
132 views

ArcMap add-in (vb.net) datagridview will crash map when right click on the title part

I find the problem accidentally. In my ArcMap add-in, there is a search function which allows the user to search the geodb based on the value of a field. It works fine but today when I right click the ...
2
votes
0answers
988 views

Visual Studio not creating “.esriAddIn” file

I have an addin that I've been maintaining with Visual Studio 2010 Express for quite some time with no issues. Recently my computer was replaced and Studio 2012 Express was installed. Since that time ...
2
votes
0answers
51 views

Menu - onCreate Event

In ArcObjects, the Class 'BaseCommand' has 'OnCreate' method(to handle oncreate event). Similarly is there any equivalent method available for Menu ('BaseMenu' Class)?
2
votes
0answers
2k views

How can I copy selected polygon features to a polyline feature class with ArcObjects?

I would like to copy selected polygon features to a polyline feature class. (Similar to how polygon features can be copied and pasted inside an edit session in ArcMap) Until recently I've been using ...
2
votes
0answers
27 views

How to implement VisibleBoundsUpdatedEventHandler

I have an ArcObjects add-in button that adds attribute value info as a text graphic into a map document layout. Now, instead of using the add-in button click event, I would like the code to run on ...
2
votes
0answers
106 views

How to solve a filename conflict problem?

I use a procedure to remove and delete a feature layer with a certain name. Then, using another procedure which is called during the run time of the program (as the remove and delete procedure as well)...
2
votes
0answers
219 views

ArcGIS Desktop 10 - MyBase.UpdateBitmap()

I am changing one icon on my extension toggle toolbar in runtime using: MyBase.UpdateBitmap(New Bitmap(Me.GetType(), bitmapResourceName)) This works fine but I get a border/highlight around my image....
1
vote
0answers
117 views

ArcMap add-in to make connection and load the database on VB.NET

I'm new at Arcobjects programming. Currently I'm trying to make an ArcMap Add-in which can connect and load a database into ArcMap. I have found samples on the Esri website, but it seems not to be ...
1
vote
0answers
127 views

ArcObjects queries using selection set

I'm new to ArcObjects and I'm finding it difficult to work with the ArcObjects 'Feature classes'. Coming to my problem, I have a Map with few layers. I have coded for the layer names to display in the ...
1
vote
3answers
233 views

Why does DotSpatial return NaN for point reprojection?

From the master branch and examples @ https://github.com/DotSpatial/DotSpatial the following fills the xy array with NaN but we expect 1755668,5922511 Dim x As Double() = {2666109} Dim y As Double() =...
1
vote
0answers
113 views

AddIn button disabled in Data View but enabled in Layout View

VB.NET Addin for ArcMap 10.3 may be causing my Table of Contents to constantly refresh. I have a custom toolbar with a few buttons. I want all of the buttons to be disabled when in Data View and only ...
1
vote
0answers
309 views

WMTS request with brutile and sharp map return wrong parameter

I'm using brutile and sharpmap to send wmts request and show maps. here is my code: Public Shared Function Create() As ITileSource Dim uri As New Uri("http://91.98.30.14:8080/geoserver/gwc/...
1
vote
0answers
3k views

QGIS with c# or vb.net

Can I add QGIS as a Plugin in .net application and access it using c# or vb.net? As I can see QGIS plugins are consumed using C++ only.
1
vote
0answers
41 views

Problem with MyBase when converting old VB.NET toolbar

I'm working on a project to convert and older set of ArcGIS tools that were developed for 9.x using VB.NET. I'm trying to convert them to an Add-In for 10.4. So far, I have created the Add-In and ...
1
vote
0answers
302 views

IDockableWindow ability to auto size?

I have a ArcObjects 10.2 vb.net Custom Add-in that is a dockable window. The dockable window displayes a windows form that has listboxes, textboxes, panels, tab panels, etc. that the user interacts ...
1
vote
0answers
245 views

Subtract two rasters with Raster Calculator in ArcObjects (VB.NET)

I'm having a hard time subtracting two rastera with ArcObjects sdk 10.1. I keep getting a null reference exception at the gp.execute() method, but I can't figure out where the problem is, I recall ...
1
vote
0answers
177 views

vb.net arcobjects validate topology function only works after I use arcmap topology tool validate topology first

I find a strange thing occasionally, I have a validate topology function developed by vb.net arcobjects. It work not properly. The case is: open arcmap start editing use my validate topology function,...
1
vote
0answers
54 views

vb.net arcobjects “current no topology available”

I am using ArcMap add-in to perform a topology validation. I have defined a topology in the geodatabase and add it in ArcMap TOC. When I try to get the current topology using ArcObjects, I get this ...
1
vote
0answers
92 views

Can arcobjects validate topology globally

I want to develop a function which allow user to validate a topology in the whole map wide. But from what I searching from internet, to validate a topology, a dirty area (polygon) must be defined, ...
1
vote
0answers
259 views

How to display labels from many-to-many relationship in ArcGIS 10 using VB.NET?

I have two tables in a geodatabase: parcel; and person 1 or + parcel, can have 1 or + person (relationship is many-to-many) Using VB.NET I can display all the parcel labelled with the "id" ...
1
vote
0answers
111 views

IStepProgressor in While Statement

I have implemented DBScan in vb.net (forced to...). I am using a progress bar to track other parts of this tool. These all are implemented in For loops. Therefore, incrementing the tracker is not ...
1
vote
0answers
115 views

ArcGIS Server - Polygon lines dimenstions

How to measure the lines of polygon . VB.NET + ArcGIS Server . I have ArcGIS Server 9.3 - WebADF - VB.NET
1
vote
0answers
186 views

Sending coordinates of features of any polygon featureclass to a table

I am trying to store x-coordinates and y-coordinates of a polygon feature in a table. But, i am getting an error message: Item not found in this collection. The code is like this: Do pFeature = ...
1
vote
0answers
201 views

Map Algebra in VB.NET Add-In Tool

I'm trying to run a map algebra expression in a vb.net add-in, and can't seem to get it to work. It's a roving window that interpolates noData areas in a DEM. The expression works in the Python window,...
1
vote
0answers
494 views

Create IPoint with Lat/Long in decimal degrees and Z in feet

I have written an ArcMap v10 AddIn that reads a folder of geotagged JPEG's and creates a new feature class where each point is the geotag information from on of the JPEG's. The issue is: The GPS ...
1
vote
0answers
244 views

How can I denote the values of reclassification using variables?

I used the following lines of code to classify a raster. However, my problem is how can I denote the old and new classification values in the last code line using variables? Then number of values ...
1
vote
0answers
263 views

arcgis server 10, vb.net, adding dynamic data

i am using arcgis server 10, with visual web developer 2010 express edition. i downloaded "ArcGIS_AddDynamicData_VBNet\Default_ADF.aspx" project form ArcGIS Add dynamic data for ArcGIS Server 10. ...
1
vote
0answers
266 views

arcgis server 10, vb.net, non pooled service, web adf

i am running arcgis server 10. i created a A.MXD file, then started arcgis server and successfully added non-pooled service using A.MXD. i also installed visual web developer 2010 express and created ...
0
votes
0answers
36 views

BC30456 'ITableSelection_SelectionChanged' is not a member of 'StandaloneTableClass'

I am seeing this error BC30456 when building this DLL for VB.Net ArcMap extension. I see the following in the ESRI.ArcGIS.Carto.xml which confuses me with the error. <member name="M:ESRI.ArcGIS....
0
votes
0answers
46 views

System.TypeLoadException: Types extending from COM objects should override all methods of an interface implemented by the base COM class

Ok, here is the situation. I am looking to get a custom arcobjects vb.net extension running correctly on ArcMap10.5. When loading nodes in an attachment viewer I receive the following error once ...
0
votes
0answers
350 views

EPSG 4326 to 3857 works on X axis but not Y with PROJ4NET

I am trying to convert a EPSG:4326 Lat Long into a EPSG:3857 reference. I have looked all around and have found slight differences in WKTs but nothing with different values. The following code ...