If I make a Visual Studio 2010 WinForms project and let the wizard add Form1
. Then I add a ListBox
to Form1
. Then I add a form with "Project/Add Windows Form", and add a ListBox
to that form (Form2
). And then change in my "Program.cs" file the line Application.Run(new Form1());
for Application.Run(new Form2());
, the ListBox
in the Form2
looks as if it has an empty line I can select (It has a focus rectangle on the first line), but the ListBox
in Form1
doesn't. How is this possible? I compared the properties of both forms and list boxes and they are identical.
I know this doesn't seem to be a big deal, but I found out this difference when trying to find the cause of another problem, coincidently related to another ListBox
with an empty focus rectangle.