Hi,
I'm using Infragistics v8.3 with vs2008 and my problem is: When I put an UltraChart to a TabPage in our code and start the application the following exception is coming up:
System.ArgumentException:
Message="IGWinTooltip kann nicht zu TabControl hinzugefügt werden. Nur TabPages können direkt zu TabControls hinzugefügt werden."
(Translation: "IGWinTooltip cannot be added to TabControl. Only TabPages can be added to TabControls.")
Source="System.Windows.Forms"
StackTrace: bei System.Windows.Forms.TabControl.ControlCollection.Add(Control value) bei Infragistics.Win.UltraWinChart.IGWinTooltip.AddToControlsCollection(Control controlToAttachTo) bei Infragistics.Win.UltraWinChart.IGWinTooltip.Attach(Control chartControl) bei Infragistics.Win.UltraWinChart.UltraChart.OnLoad(EventArgs e) bei System.Windows.Forms.UserControl.OnCreateControl() bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) bei System.Windows.Forms.Control.CreateControl() bei System.Windows.Forms.Control.SetVisibleCore(Boolean value) bei System.Windows.Forms.SplitterPanel.set_Visible(Boolean value) bei System.Windows.Forms.SplitContainer.CollapsePanel(SplitterPanel p, Boolean collapsing) bei System.Windows.Forms.SplitContainer.set_Panel2Collapsed(Boolean value)
How could i fix this issue?
I think this is a bug in our control, but I'm not able to reproduce the problem. Do you have steps to reproduce or a sample project I could use?
I just use a windows.forms.tabcontrol and added a TabPage. After that I dragged an UltraChart into the TabPage. Now whenever I change something in the code of the form with the TabControl and go back to designer-mode, VS2008 already throws that kind of exception above.
bug 14814 has been confirmed fixed in the following versions:
We upgraded from 8.3.20083.2021 to 9.1.20091.2012 and started seeing this problem.
We host the DesignSurfaces within our application. The issue is occuring within these views that are in design mode. The same view not in design mode works fine. The IGWinTooltip's GetControlToAttachTo( ) must be returning the MS TabControl.
Couldn't/shouldn't the UltraChart skip the call to
this.Tooltip.Attach(this);
in it's OnLoad if the control is in design mode?
Pat,
The current service release available on our website is 9.1.20091.2013. this version should fix the design-time problem. however the fix is actually in IGWinToolTip.AddToControlsCollection and not UltraChart.OnLoad.
Hmm, that version did contain the fix I was talking about. Do you have the stack trace from the exception, or a sample project?
it's possible these circumstances would cause our "is design time" test to fail. in the AddToControlsCollection method you see in your stack trace, we execute this code:
if (chartControl != null && chartControl.DesignMode) { return; }
over the years, I have seen quite a few cases of incorrect values being returned from the Control class's DesignMode property. perhaps this is the problem. i'm fairly certain we can provide a solution in a service release, but before that happens, I'd like to make sure we can reproduce the problem just as you are experiencing it.
I'm getting the same error. I just placed a UltraChart on a normal Windows-TabPage. I commented out everything that has to do with Tooltips, but it doesn't work. There is no designer-code that uses IGWinTooltip at all.
I'm running on a german Windows XP SP3, VS 2008 TS Development with SP1 and Infragistics NetAdvantage 2009 Vol. 1.
Alex
I will get you something. In the meantime there is another twist I failed to mention. The chart control is on a user control, that is then placed on the tab page. Could that be the culprit?
Thanks.
andrewscg,
can you provide steps to reproduce or a sample project? i tried adding a Windows Forms TabControl to a new form, then dropped a chart inside its tabPage2, and did not observe any errors.
I am running 8.3.20083.2132 and still get this error at design time but not runtime.