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 304967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:19:46+00:00 2026-05-12T07:19:46+00:00

I have a WinForm with 2 ListView controls. The first listview is on the

  • 0

I have a WinForm with 2 ListView controls. The first listview is on the left hand side and presents the list of categories, the second is on the right hand side, and presents items within a category. Think of it like the classic explorer-type UI, but specialized: the hierarchy is just one level deep.

If I have a listviewItem highlighted on the LHS, and click an arrow key, the form automatically handles it. I don’t have a KeyPress event handler (or a handler for KeyDown/KeyUp), but I learned that TreeView and ListView have builtin function for handling arrow keys as navigation inputs.

The problem is, the form handles it in a non-intuitive way. Focus changes to listview2, and then subsequent arrow key inputs navigate within the items of listview2. What I would like is for focus to remain in the listview it was in, originally.

How do I make sure that when the listview that has focus, alone, handles the up/down arrows?

  • 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-12T07:19:46+00:00Added an answer on May 12, 2026 at 7:19 am

    You presumably are doing something on the treeview’s NodeSelected event, that moves focus to the listview. If you can post the code in your question, maybe we can work out what it is?

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

Sidebar

Ask A Question

Stats

  • Questions 251k
  • Answers 251k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think that it is impossible because to count children… May 13, 2026 at 9:28 am
  • Editorial Team
    Editorial Team added an answer RichFaces has this built in as the rich:jQuery component. Set… May 13, 2026 at 9:28 am
  • Editorial Team
    Editorial Team added an answer There seems to be problems with the video drivers shipped… May 13, 2026 at 9:28 am

Related Questions

Env.: VS 2008, .NET 2.0, WinForms I have a listview in Tile mode. Some
I've noticed that the bog-standard ProgressBar in .NET 2.0 (Winforms) does show up as
I have 2 questions concerning C#. 1) I have a dropdown menu with several
I have a Winform with a very basic premise: modify 2 string properties of

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.