Jump to content
Software FX Community

dynamic HorizontalGauge


Recommended Posts

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();


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";


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 ? 



Link to comment
Share on other sites

  • 3 weeks later...

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...