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.
Pat,
Hmm, that version did contain the fix I was talking about. Do you have the stack trace from the exception, or a sample project?
Hi, we also tried the version mentioned above and still got the problem. Here are the two stacktraces we got:
System.ArgumentException ist aufgetreten. Message="IGWinTooltip kann nicht zu TabControl hinzugefügt werden. Nur TabPages können direkt zu TabControls hinzugefügt werden." 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(Boolean fIgnoreVisible) bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 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.ControlCollection.Add(Control value) bei AvmDlg.ucPortal.AddControl(SplitterPanel sp, Control c) in C:\Src\AvmDlg\ucPortal.cs:Zeile 111. InnerException:
System.ArgumentException ist aufgetreten. Message="IGWinTooltip kann nicht zu TabControl hinzugefügt werden. Nur TabPages können direkt zu TabControls hinzugefügt werden." 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(Boolean fIgnoreVisible) bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 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.TabPage.set_Visible(Boolean value) bei System.Windows.Forms.TabControl.UpdateTabSelection(Boolean updateFocus) bei System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs e) bei System.Windows.Forms.TabControl.WmSelChange() bei System.Windows.Forms.TabControl.set_SelectedIndex(Int32 value) bei System.Windows.Forms.TabControl.set_SelectedTab(TabPage value) bei Tools.MskWin.SelectTab(TabControl tc, TabPage[] allTabs, TabPage tp) in C:\Src\Tools\ToolsWinForm.cs:Zeile 391. InnerException:
avmdevnet,
do you have a sample project or steps to reproduce? it seems we've fixed it in the scenario we made, but there is something different going on in your project which we haven't seen.
Hello,
doing a sample project is not so easy, can you have a look at the picture, which i send. we get this error in visual studio.
regards.
I opened Infragistics2.Win.UltraWinChart.v9.1, Version=9.1.20091.2012 in .NET Reflector and checked the IGWinTooltip.AddToControlsCollection method to be sure. the Controls.Add method should not be called at design time in this version of the dll. are you sure you're using the correct version? try attaching a debugger to that instance of visual studio and checking the modules window to see what version of the chart dll is loaded at design time.
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.