New answers tagged vb.net
I think this will work: Dim queryAddress As New StringBuilder() queryAddress.Append("http://maps.google.com/maps?q=") For i = 0 To Me.DataGridView1.RowCount - 1 If Me.DataGridView1.Rows(i).Cells(0).Value <> String.Empty Then lat = Me.DataGridView1.Rows(i).Cells(0).Value queryAddress.Append(lat + "%2C") ...
I always recommend to check for null values when you are geting features from feature classes, feature class from feature layers, etc. That will prevent you this type of errors, and in the future will be easier to find bugs. Dim pFLayer As IFeatureLayer pFLayer = pMap.Layer(layerNum) Dim featureClass As ESRI.ArcGIS.Geodatabase.IFeatureClass = ...
GetFeature() is a method of IFeatureClass, not IFeatureLayer. Change this: Dim feature as IFeature = pFLayer.GetFeature(1) to this: Dim feature as IFeature = pFLayer.FeatureClass.GetFeature(1) Looks like you're creating a featureclass object but not using it.
Looks like you want to listen for attribute window events. Seems you can access them from this interface: iAttributeWindowEvents There is an 'onDeactivate' event that you'll want to listen for to trigger your next section of code. There should be plenty of code samples around showing how to listen for events in ArcObjects.net.
Top 50 recent answers are included