Appearance.Form1.Form1_Load C# (CSharp) Method

Form1_Load() private method

private Form1_Load ( object sender, System e ) : void
sender object
e System
return void
		private void Form1_Load(object sender, System.EventArgs e)
		{
			//Set buddy control
			axToolbarControl1.SetBuddyControl(axGlobeControl1);

			//Add new items to the ToolbarControl
			axToolbarControl1.AddItem("esriControls.ControlsGlobeOpenDocCommand", 0,-1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
			axToolbarControl1.AddToolbarDef("esriControls.ControlsGlobeGlobeToolbar", -1, true, 0, esriCommandStyles.esriCommandStyleIconOnly);
			axToolbarControl1.AddToolbarDef("esriControls.ControlsGlobeRotateToolbar", -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
		}
	}