Frans Bouma's blog

Generator.CreateCoolTool();

Syndication

News




    Add to Technorati Favorites

About me

Fun stuff I created

My work

VS.NET 2008 Beta 2 / .NET 3.5: Windows Forms ComboBox contains nasty bug.

The Windows Forms combobox control contains a nasty a lot of people who will try .NET 2.0 applications on .NET 3.0 will run into: the Sorted property makes comboboxes unable to bind to data: they stay empty. This is particular bad, because any solid working application for .NET 2.0 using comboboxes in a databinding scenario (and I estimate a lot of applications fall into that category) which uses the Sorted property to get sorted results will run into this problem, and it has huge consequences: any user who has .NET 3.5 installed will run into this, no matter what you defined as supportedRuntime in the .config file of your application.

I've logged a bug in Connect with a repro case (very lame form). Setting Sorted to false fixes it, but of course, in already compiled applications or in applications with a lot of comboboxes, this can be a real problem. If people have workarounds for this, please step forward.

Published Sunday, July 29, 2007 7:13 PM by FransBouma

Comments

# re: VS.NET 2008 Beta 2 / .NET 3.5: Windows Forms ComboBox contains nasty bug.@ Sunday, July 29, 2007 5:15 PM

This reminds me of a bug when I switched from .NET 1.1 to 2.0 -- empty combo boxes when binding data. It turned out that my companies anti-virus software (McAfee) needed updated. Why anti-virus software was interfering with combo boxes I'll never know, but  it was documented in their knowledge base and updating did indeed fix the problem. I would hope that this isn't the case again.

Tony

# re: VS.NET 2008 Beta 2 / .NET 3.5: Windows Forms ComboBox contains nasty bug.@ Sunday, July 29, 2007 5:33 PM

This answers to our problems on our test machine with LLBLGen Designer v2.0 adding a relation was impossible and error was thrown related to the entity combobox on the form ... uninstalling Orcas (Beta 1) at that time solved the issue.

Michael Devenijn

# re: VS.NET 2008 Beta 2 / .NET 3.5: Windows Forms ComboBox contains nasty bug.@ Monday, July 30, 2007 11:28 AM

Thank you for reporting this issue! We're actively investigating and will provide additional info as soon as it becomes available. Please continue to monitor the issue in Connect.

thanks again,

-Imran

imran_s

# re: VS.NET 2008 Beta 2 / .NET 3.5: Windows Forms ComboBox contains nasty bug.@ Monday, July 30, 2007 2:49 PM

Michael, that's also how we found this issue :).

FransBouma