Hello,I've upgraded to the latest release of win form controls (13.1 (from 8.3), I'm not sure exactly which version as I no longer see the assemblies in the GAC).Having been through our system looking for potential issues, I've noticed that all of the ToolStrip controls in our application doesn't appear to be hosting infragistic controls correctly, in particular the UltraCombo control.In the sample below, you can see that the first control, an UltraLable, isn't hosted without issue, but then the next control, an UltraCombo control, overflows off the screen, this is the issue.You can download a sample showing the issue here:http://www.andrewburrow.net/SharedFiles/Download.aspx?pageid=40&mid=83&fileid=539or by either browsing to http://www.andrewburrow.net/public-files.aspx, selecting the Infragistic Samples folder and selecting to download ToolStrip.zip.System Information: Visual Studio 2010, .net 4.0, Infragistics 13.1, x64 Application, Windows 7 x64Source code is simply doing this (ultraCombo1 has just been dropped on to the form in designer where I've set the visible property to false, along with a .Net 4 ToolStrip control):
private void Form1_Load(object sender, EventArgs e) { ToolStripLabel label1 = new ToolStripLabel("1"); ToolStripLabel label2 = new ToolStripLabel("2"); ToolStripLabel label3 = new ToolStripLabel("3"); toolStrip1.Items.Add(label1); toolStrip1.Items.Add(label2); toolStrip1.Items.Add(label3); ToolStripControlHost tradeHost = new ToolStripControlHost(ultraCombo1); toolStrip1.Items.Add(tradeHost); }
Note: Hosting a .Net 4 Windows Forms ComboBox works without an issue.
ThanksAndrew
Hello Andrew,
Here is my attached image. Please note that the UltraCombo does act as a popup. Im investigating how to keep it within the boundaries of the form.
Please let me know if you have any additional questions.
Hi Michael,
Thank you for looking in to this for me.
Yes this is the issue. If you resize the form, the UltraCombo will remain in the overflow section of the ToolStrip. As you say, it should be within view and aligned left in the ToolStrip control.
I tried using a .Net 4 ComboBox and this worked as expected.
Thanks,Andrew
I have attached a new sample. Please take a look and let me know if this what you are looking for.
I have logged a development issue for this.
You can view the status of the development issue connected to this case by selecting the "Development Issues" tab when viewing your active cases on the web site.
Also, there must also be something special about Infragistics.Win.UltraWinEditors.UltraComboEditor();
My application is using type Infragistics.Win.UltraWinGrid.UltraCombo(); and I've just tried to use
dynamic and this doesn't work the same as it does for the UltraComboEditor type.
Yes the application you sent over works.
The key part to it working is the following line of code:
dynamic dropdownCheck = new Infragistics.Win.UltraWinEditors.UltraComboEditor();Using type dynamic, which is effectively the same as type object, means the hosting of the UltraComboEditor works and doesn't flow off the screen.Whilst this is a work around I assume your development team will fix this issue properly? Otherwise this means I will have to go through out entire application, looking at all toolstrips, and change the type on the initializer.I take it fot VB.Net, the equivelent, which should work, would be something like Dim combo as Object = new Infragistics.Win.UltraWinEditors.UltraComboEditor()?Ideally there will be a fix in the service release due next Thursday. Another issue I've raised to do with the UltraDayView control has been fixed there so really I need a fix to this in your 13.1 compiled assemblies due next week.Thanks,Andrew
I am following up on this case. Please let me know if you have any additional questions.