protected override void OnClick() { theForm = new SecondaryViewerForm(); //register form's events theForm.topDownButton.Click += new EventHandler(topDownButton_Click); theForm.normalButton.Click += new EventHandler(normalButton_Click); theForm.FormClosing += new FormClosingEventHandler(theForm_FormClosing); //get viewer list getListOfSecondaryViewers(); //register the ArcGlobe globe's display afterdraw event globeDispEvent.AfterDraw += new IGlobeDisplayEvents_AfterDrawEventHandler(globeDispEvent_AfterDraw); theForm.Show(); }