private void Form1_Load(object sender, System.EventArgs e) { InitializeChartData(); ChartAppearance.ApplyChartStyles(this.chartControl1); this.panel1.Visible = false; this.comboBox1.SelectedIndex = 1; this.chartControl1.ToolBar.AutoSize = false; this.chartControl1.ToolBar.Size = new Size(250, 30); this.chartControl1.Dock = DockStyle.Fill; this.buttonPrint.MouseMove += buttonPrint_MouseMove; this.buttonAdv1.MouseMove += buttonAdv1_MouseMove; }
private void Form1_Load(object sender, System.EventArgs e) { InitializeChartData(); ChartAppearance.ApplyChartStyles(this.chartControl1); this.panel1.Visible = false; this.comboBox1.SelectedIndex = 1; this.chartControl1.ToolBar.AutoSize = false; this.chartControl1.ToolBar.Size = new Size(250, 30); this.chartControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.buttonPrint.MouseMove += buttonPrint_MouseMove; this.buttonAdv1.MouseMove += buttonAdv1_MouseMove; }