Add the ArcWeb Services commands to the ToolbarControl as a menu.
[C#]
///<summary>Add the ArcWeb Services commands to the ToolbarControl as a menu.</summary> /// ///<param name="toolbarControl">An IToolbarControl interface. Use the .Object property when passing a control in .NET. Example: axToolbarControl1.Object</param> /// ///<remarks> ///Call to add the ArcWeb commands to the ToolbarControl ///For example, if a ToolbarControl named axToolbarControl1 exists use the following code: ///AddArcWebMenuToToolbarControl (AxToolbarControl1.Object) ///</remarks> public void AddArcWebMenuToToolbarControl(ESRI.ArcGIS.Controls.IToolbarControl toolbarControl) { toolbarControl.AddMenuItem("esriControls.ControlsArcWebMenu", -1, false, 0); }
[Visual Basic .NET]
'''<summary>Add the ArcWeb Services commands to the ToolbarControl as a menu.</summary> ''' '''<param name="toolbarControl">An IToolbarControl interface. Use the .Object property when passing a control in .NET. Example: axToolbarControl1.Object</param> ''' '''<remarks> '''Call to add the ArcWeb commands to the ToolbarControl '''For example, if a ToolbarControl named axToolbarControl1 exists use the following code: '''AddArcWebMenuToToolbarControl (AxToolbarControl1.Object) '''</remarks> Private Sub AddArcWebMenuToToolbarControl(ByVal toolbarControl As ESRI.ArcGIS.Controls.IToolbarControl) toolbarControl.AddMenuItem("esriControls.ControlsArcWebMenu", -1, False, 0) End Sub