Jump to content
Software FX Community

tobleronne

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by tobleronne

  1. Hi,I am trying to put dynamicaly an horizontalGauge on tablelayoutPanel : tableLayoutPanel.Controls.Add(DisplayLinearScale(), 0, 0); My method------------------- private ChartFX.WinForms.Gauge.HorizontalGauge DisplayLinearScale() { ChartFX.WinForms.Gauge.HorizontalGauge horizontalGauge = new ChartFX.WinForms.Gauge.HorizontalGauge(); ChartFX.WinForms.Gauge. LinearScale linearScale1 = new ChartFX.WinForms.Gauge.LinearScale();ChartFX.WinForms.Gauge.Marker marker1 = new ChartFX.WinForms.Gauge.Marker(); //horizontalGauge.Location = new System.Drawing.Point(196, 4);horizontalGauge.Name = "horizontalGauge"; horizontalGauge.Scales.AddRange( new ChartFX.WinForms.Gauge.LinearScale[] { linearScale1 });horizontalGauge.Size = new System.Drawing.Size(158, 50); //horizontalGauge.TabIndex = 0;horizontalGauge.Text = "horizontalGauge1"; linearScale1.AutoScaleInterval = null;linearScale1.Bar.Color = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(225)))), ((int)(((byte)(243))))); linearScale1.Color = System.Drawing. Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(225)))), ((int)(((byte)(243)))));linearScale1.Indicators.AddRange(new ChartFX.WinForms.Gauge.Indicator[] { marker1 });return horizontalGauge; } It doesn't work and crash my tablelayoutpanel.. What i have missed ? Regards Dave
×
×
  • Create New...