Hello. I am new to ArcObjects and programming. I am trying to create a form that is initiated by a button click that when entering two streets in separate textboxes, the intersection of these two streets is zoomed in on in ArcMap (version 9.3.1). I have created the form where it will open and close but am stuck on where to go from here so that when street names are entered into a textbox, the street name is pulled from the Street shapefile's attribute table. Any help would be appreciated!! (See attachment)
No, I didn't want to use a ComboBox because I have several hundred streets to select from. I was hoping I could use a text box so that the user can enter the streets they want to find and the text box would somehow be linked to the Street layer attribute table, specifically the ROADNAME field within the attribute table.
Well the logic is not that dissimilar. You still need to get a handle on the FeatureClass and use a FeatureCursor to query your dataset by setting the WhereClause. This would return the feature or "row" where you could extract the geometry and zoom to it.
But you are opening up a can of worms here. "Bob Street" is not the same as "bob st." or even "Bob Stret". Can you rely on your users entering the correct text? I can answer that now, no!
I'm sure someone could add stuff to this thread about using regularly expressions?