TeeChart in UserControls

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
AndreasL
Newbie
Newbie
Posts: 7
Joined: Tue Apr 08, 2003 4:00 am
Location: Switzerland

TeeChart in UserControls

Post by AndreasL » Mon Apr 11, 2005 10:04 am

I'm using TChart in UserControls.

In the Tools TeeChartEditor are the following selections only available :

Series - Extra Legends
Axis - Color and Grid Band
Others - Annotation and Page Number

I have seen that the other Tools I need like Cursor, DragPoint ... appears when including the TChart in a WinForm.

I could add them programmatically in the UserControl but would rather not. Is there a solution ?

I'm using Teechart for Net 2.0.1909.23877 with Visual C#

Thanks in advance

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Apr 11, 2005 10:53 am

Hi AndreasL,

Those controls only work under WinForms applications.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

AndreasL
Newbie
Newbie
Posts: 7
Joined: Tue Apr 08, 2003 4:00 am
Location: Switzerland

Post by AndreasL » Mon Apr 11, 2005 11:47 am

Hello,

why does they only work in WinForms ?

Is there a chance to change this in next version.

I use a lot of user control to split the functionality in different classes.

Best regards

Andreas

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Apr 11, 2005 11:53 am

Hi AndreasL,

I'm afraid this is not possible. If you need more events than MouseOnClick you could use TeeChart Pro ActiveX in Visual Studio .NET as it works as an object in WebForms.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

AndreasL
Newbie
Newbie
Posts: 7
Joined: Tue Apr 08, 2003 4:00 am
Location: Switzerland

Post by AndreasL » Mon Apr 11, 2005 11:59 am

Hello,

but why does it works when I add them in a WinForm and the copy the component programmatically into the UserControl.

Then I can use all features.

Of course did you a solution for me to add a WinForm into another WinForm. This would altough help.

Best regards

Andreas

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Apr 11, 2005 12:05 pm

Hi Andreas,
but why does it works when I add them in a WinForm and the copy the component programmatically into the UserControl.
This is because .NET Windows Forms controls can be hosted in Internet Explorer although this means the client needs the .NET Framework. This tecnique can bee seen at http://windowsforms.net/articles/iesourcing.aspx.

We suppose using a UserControl as a wrapper for a Windows Forms gives you similar functionality.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

AndreasL
Newbie
Newbie
Posts: 7
Joined: Tue Apr 08, 2003 4:00 am
Location: Switzerland

Post by AndreasL » Mon Apr 11, 2005 12:15 pm

Hello,

now I've been a little bit confused.

I have a windows application and not a web form.

I use Controls->Add to add UserControls to a WinForm.

In one UserControl the component TeeChart is used. But then I don't have the same functionality like using a TeeChart in a WinForm.

So we using a UserControl as a wrapper for a Windows Forms gives you similar functionality. Or what do you mean by that ?

Best regards

Andreas

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Apr 11, 2005 12:49 pm

Hello Andreas,

Ok, I thought you were trying to use TeeChart for .NET in a WebForm application. If you are developing WinForms applications then you shouldn't have any restriction. Installing TeeChart should have created a tab called "Steema" at the Visual Studio .NET Toolbar where all components should be available.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

AndreasL
Newbie
Newbie
Posts: 7
Joined: Tue Apr 08, 2003 4:00 am
Location: Switzerland

Post by AndreasL » Thu Apr 14, 2005 3:23 pm

Hello,

but I have a restriction.

Using Teechart in a Usercontrol in the Tools TeeChartEditor are the following selections only available :

Series - Extra Legends
Axis - Color and Grid Band
Others - Annotation and Page Number

Using Teechart in a WinForm I see the other Tools I need like Cursor, DragPoint ....

Best regards

Andreas

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Apr 15, 2005 9:33 am

Hi Andreas,

Yes, you are right. I've included this bug to our deffect list to be fixed in future releases.

In the meantime you can use the missing tools at run-time. You can see how they work programmatically at "Tutorial 18 - The TeeChart Tool Collection". The tutorials are included with the TeeChart installation and available at TeeChart program group.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply