Some Windows Form controls do not display contents properly
Posted on 2005-05-03
I have an issue with a C# application I wrote in Visual Studio .NET 2003. I have two computers here. Both are running Windows XP Pro SP2. On one machine, the application works perfectly. On the other, whenever I run the application it appears that all of the combo/list boxes are empty. However, clicking in these controls reveals the item beneath the mouse pointer. Therefore, they're not empty, the contents are just invisible. I've tried refresh() methods for the entire form and for individual controls, with no success. Normally the controls are populated from a database, but I've tried hard-coding values into the controls with the same result.
Is this some kind of problem with the computer in question, or does it indicate some kind of flaw in the code?