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?
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.