Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3312004
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:56:35+00:00 2026-05-17T21:56:35+00:00

If I make a Visual Studio 2010 WinForms project and let the wizard add

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T21:56:35+00:00Added an answer on May 17, 2026 at 9:56 pm

    I figured it out. It’s just because there is a Button in Form1. Something with the focus being automatically in the ListBox when there is no other control. Had nothing to do with my other problem. Would delete my question if I’d know how.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a VERY simple C# Winforms project that I made using Visual Studio
Is it possible to make Visual Studio 2010's code completion window more like that
I am trying to make an Outlook 2003 add-in using Visual Studio 2008 on
How do I make a Visual Studio 2010 solution read-only?
I want to make the debugger in Visual Studio 2010 stop at the exception
Before upgrading to Visual Studio 2010, I want to make sure I can still
I am seeing a strange phenomenon in Visual Studio 2010. My project setup is
We have a Visual Studio 2010 solution that contains several C# projects in accordance
My environment consists of Visual Studio 2010 and Windows 7 a few months ago
I'm trying to debug a C/C++ native DLL project from Visual Studio 2010. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.