Page 1 of 1

TeeChart in UserControls

Posted: Mon Apr 11, 2005 10:04 am
by 8119980
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

Posted: Mon Apr 11, 2005 10:53 am
by narcis
Hi AndreasL,

Those controls only work under WinForms applications.

Posted: Mon Apr 11, 2005 11:47 am
by 8119980
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

Posted: Mon Apr 11, 2005 11:53 am
by narcis
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.

Posted: Mon Apr 11, 2005 11:59 am
by 8119980
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

Posted: Mon Apr 11, 2005 12:05 pm
by narcis
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.

Posted: Mon Apr 11, 2005 12:15 pm
by 8119980
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

Posted: Mon Apr 11, 2005 12:49 pm
by narcis
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.

Posted: Thu Apr 14, 2005 3:23 pm
by 8119980
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

Posted: Fri Apr 15, 2005 9:33 am
by narcis
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.