Hi
Thank you for your help with my previous queries.
This time I have a really silly question.
How do I resize a teeChart to always fill the form as the user resizes the form?
I see that in the demo that all your charts do resize very well. I can't find the code that does that. In TeeCharts ActiveX version 5, I used to use the .Move method of the chart. There does not seem to be such a method any more. In the demo, I see there is some code about AutoSizeBaseScale, ResumeLayout, etc. Is this what does it?
I actually have the teeChart as part of a usercontrol, and I want it to resize both at design time when the control is put onto a form and at runtime when a user resizes the form.
Regards
Reg Bust
Resize/Move the chart with the form it's on.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Reg Bust,
You're welcome.
You need to use:
You can do it programmatically as shown above or at design-time at TeeChart's properties editor.
You're welcome.
You need to use:
Code: Select all
tChart1.Dock=System.Windows.Forms.DockStyle.Fill;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Reg Bust,
You're welcome. I'm glad to hear that was what you needed.
You're welcome. I'm glad to hear that was what you needed.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |