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.
ok. so after adding UltraChart and UltraTabControl to my toolbox, i take the following steps:
1. drag the tabcontrol onto the design surface.
2. right-click the tabcontrol and from the context menu, select "add tab"
3. drag the chart onto the tabcontrol from the toolbox. click the finish button to close the chart wizard.
4. hit f7 to switch to code view. add a line of code: private bool nothing = false;
5. double-click form1.cs in solution explorer to re-open the designer.
the tab and chart still show up as expected. do these steps work for you? also, what is the complete (x.x.x.x) version number of the dlls you are using?
I didn't use the UltraTabControl just a normal Windows-Control. The rest of the procedure was just the same as above. I added a screenshot from my test-project and hope they can help you further.
These complete version of the Infragistics.dlls is 8.3.20083.2039.
ok, i was able to reproduce this, so i entered it into our bug tracking system. the bug number is 14814.
it should be resolved in a future hotfix patch. feel free to contact Infragistics Developer Support at http://infragistics.com/gethelp at any time to inquire about the status of this bug.
Any word on this? I am evaluating your latest NETAdvantange Win Suite as a replacement to the v2 controls already used extensively in my project. I am getting exactly the same error. As the other poster mentioned, I have a UltraWinChart on a form inside a tab page.
The only difference is that the original design was using v2 UltraWin controls and I upgraded by replacing the references, as noted in a Knowledgebase article from your site. However the results are the same.
I am planning on purchasing the upgrade license, if I can get this to work seemlessly. Otherwise, I will have to start over, and will re-evaluate the project effort.
Mark
bug 14814 has been confirmed fixed in the following versions:
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.