Hi,
When I include the chart in a form view, I hope it can be dynamically resized when the window size changes. Is it possible to do that? Thank you very much!
David
Is it possible to dynamically resize the chart?
Hi David,
you can use similar code to the below :
you can use similar code to the below :
Code: Select all
Private Sub Form_Load()
With TChart1
.AddSeries scLine
.Series(0).FillSampleValues 20
End With
ResizeChart
End Sub
Private Sub Form_Resize()
ResizeChart
End Sub
Private Sub ResizeChart()
With TChart1
.Top = 0
.Left = 0
.Height = Me.ScaleHeight
.Width = Me.ScaleWidth
.Repaint
End With
End Sub
Pep Jorge
http://support.steema.com
http://support.steema.com