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

Related Questions

I have been using a Winform ListView in my project. When the list view
i have a c# winform app that contains a listview control. i would like
I have a winforms listview with 200 items shown in a details listview. 50
I am trying to have a list of large (256x256) icons in a listview
I have a C# Winform List View. The only problem I have with it
I have a Winform application I'm modifying for a friend. It has a listview
Is it possible to have variable-height rows within a WinForms ListView in Details mode?
I have a winform containing tabs, containing a usercontrol, containing a listview with checkboxes.
I have a WinForm application that has a list view in it. What I
Env.: VS 2008, .NET 2.0, WinForms I have a listview in Tile mode. Some

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.