Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
ArcGIS Experience Builder
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Dashboards
ArcGIS Field Maps
ArcGIS StoryMaps
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Imagery and Remote Sensing Insights (IRIS) COP
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcGIS Pro SDK
ArcObjects SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
Game Engine Maps SDKs
File Geodatabase API
All Developers Communities
Global
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Europe
Esri India
Americas
Asia Pacific
Comunidad GEOTEC
GeoDev Germany
ArcGIS Content - Esri Nederland
All Global Communities
All Communities
Developers
User Groups
Industries
Services
Community Resources
Global
Events
Learning
Networks
ArcGIS Topics
Products
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Developers
:
ArcObjects SDK
:
ArcObjects SDK Questions
:
A Possible Bug of Arcmap Add-In Combobox
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
Select to view content in your preferred language
Translate Now
A Possible Bug of Arcmap Add-In Combobox
Subscribe
857
1
12-22-2013 09:02 PM
by
HaoliangYu
Emerging Contributor
12-22-2013
09:02 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Hello, I am using C# to develop an Arcmap addin. I wonder whether there is a bug at the function ComboBox.GetItem().
I tried to run the following code when the combobox was initialized: (an item is already added)
MessageBox.Show(this.GetItem(0).Caption)
but it failed to popup a messagebox. So I used this.items(0).Caption instead and it worked.
So I guess there is difference between ComboBox.GetItem(index) and ComboBox.items[index]. Or there may be a bug.
btw, is there a way that the add-in can get access to events of controls at ArcMap? For example, directly response to the layer addition or deletion.
Tags
(5)
Tags:
_arcobjects
_engine
_server
desktop
gis_developers
Reply
0
Kudos
All Posts
Previous Topic
Next Topic
1 Reply
by
HaoliangYu
Emerging Contributor
12-23-2013
09:35 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
It is my mistake. The cookie that the ComboBox.Add() returns does not start from 0. It is not a normal index.
Reply
0
Kudos
Post Reply