tobleronne Posted March 21, 2008 Report Share Posted March 21, 2008 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 Quote Link to comment Share on other sites More sharing options...
maximop Posted April 8, 2008 Report Share Posted April 8, 2008 I am unable to replicate your problem. Please ensure that you are running the latest version of the ChartFX Gauges for .NET. You can download the latest service pack from the link below: http://support.softwarefx.com/ShowInteractive.aspx?Product=CfxGauges&option=0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.