if(ChartControl!=null) { System.Windows.Forms.Control[] controls = ChartControl.Controls.Find("tsrTool", false); if (controls.Length > 0) { ToolStripButton btnTemp = new System.Windows.Forms.ToolStripButton("temp"); boldFont = new Font("Arial", 8,FontStyle.Bold); btnTemp=null; btnTrail = new System.Windows.Forms.ToolStripButton("btnTrail"); //btnManual.Font = boldFont; btnTrail.Font=boldFont; btnTrail.ForeColor=Color.White; btnTrail.BackColor=Color.Red; btnTrail.Text = "MicroTrail"; strip = (System.Windows.Forms.ToolStrip)controls[0]; strip.Items.Add(btnTrail); btnTrail.Click += MicroTrailFunc; buttonsloaded=true; } }
Thanks for your help!
Comment