G
Guest
Problem: If I click to display list items in ComboBox, all list items are not
visible to select. However, if I select one of them, then I can see it on
ComboBox.
This problem only happens in Windows XP. In Windows 2000 it does work fine.
I can work around using DrawMode.OwnerDrawFixed and OnDrawItem event. But, I
don't want to add them to all of my source codes.
Environment: Windows XP ServicePack2, Visual studio.net 2003 with .NET
Framework 1.1
Source Code:
private void LoadAlgorithm()
{
CBX_Algorithm.DisplayMember = "Algorithm";
CBX_Algorithm.Items.Add("ABC");
CBX_Algorithm.Items.Add("CBC");
CBX_Algorithm.Items.Add("ABA");
CBX_Algorithm.Items.Add("AAA");
CBX_Algorithm.SelectedIndex = 3;
CBX_Algorithm.DrawMode = DrawMode.Normal;
}
Thank you very much.
visible to select. However, if I select one of them, then I can see it on
ComboBox.
This problem only happens in Windows XP. In Windows 2000 it does work fine.
I can work around using DrawMode.OwnerDrawFixed and OnDrawItem event. But, I
don't want to add them to all of my source codes.
Environment: Windows XP ServicePack2, Visual studio.net 2003 with .NET
Framework 1.1
Source Code:
private void LoadAlgorithm()
{
CBX_Algorithm.DisplayMember = "Algorithm";
CBX_Algorithm.Items.Add("ABC");
CBX_Algorithm.Items.Add("CBC");
CBX_Algorithm.Items.Add("ABA");
CBX_Algorithm.Items.Add("AAA");
CBX_Algorithm.SelectedIndex = 3;
CBX_Algorithm.DrawMode = DrawMode.Normal;
}
Thank you very much.