After adding the textbox right on the toolbar, it will make it easier for us to search for restaurants. Let us code this control:
If necessary, open Visual Studio Express in administrator mode.
Go to File, then click on Open Project, browse to the
Bestaurants
project from theC:\ArcGISByExample\bestaurants\Code
, and click on Open.We need the
txtSearchform
control to have access to ArcMap application. For that, we need to add anApplication
property and then set it. Right-click ontxtSearchForm.vb
and select View Code.Add the following property to the code:
Public Class txtSearchform Private _application As ESRI.ArcGIS.Framework.IApplication Public Property ArcMapApplication() As ESRI.ArcGIS.Framework.IApplication Get Return _application End Get Set(ByVal value As ESRI.ArcGIS.Framework.IApplication) _application= value End Set End Property End Class