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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:43:32+00:00 2026-05-10T21:43:32+00:00

Working in C# win forms, I’m trying to create a list of items where

  • 0

Working in C# win forms, I’m trying to create a list of items where each item is compromised of an icon and 3 labels in a specific layout.

Here’s an illustration of it

http://hosting04.imagecross.com/image-hosting-13/3535help.jpg

The user should be able to select a single row, just like in a normal Listview.

My first attempt was creating the icon and labels in a user control, and then putting the user control in a FlowLayoutPanel in a vertical layout (which would create a list). The problem was the selection. Since the clicking event was captured by the user control, there was no easy way on letting the other user controls in the list know that the control was selected and if they are currently selected they now should be unselected. (I hope this makes sense…)

I also tried using some open source custom Listview I found here: http://www.codeproject.com/KB/list/aa_listview.aspx but it’s too buggy.

I also thought about creating a custom control that will inherit from Listview and render my user control in the list, but I also read about someone who tried to do that and got into a lot of difficulties.

I’d be very happy to hear any suggestions you might have.

Thanks!

  • 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. 2026-05-10T21:43:32+00:00Added an answer on May 10, 2026 at 9:43 pm

    What you may want to try is have two user controls. One control which you seem to already have, which is the icon and the labels. This will be an internal control that you can’t instantiate outside of your assembly. The second user control, will just be a container of sorts (you can do this either by actually using a user control, or inheriting from a panel or whatever, doesn’t matter). This will just serve as a collection of the individual items, and it will manage the selecting and unselecting of the items.

    Basically, each user control will raise the click event, which your container user control will hook up to. It will then know which to select, and which to unselect.

    Hope that makes sense!

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

Sidebar

Ask A Question

Stats

  • Questions 69k
  • Answers 69k
  • 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
  • added an answer Calling string on a python list calls the __repr__ method… May 11, 2026 at 12:28 pm
  • added an answer Generally the rows would be locked while you do the… May 11, 2026 at 12:28 pm
  • added an answer This smells very strongly of having two different objects without… May 11, 2026 at 12:28 pm

Related Questions

Working in C# win forms, I'm trying to create a list of items where
I am working in C#.net - .Net fx is 2.0 which doesnot support converting
I am currently working in C/C++ in a Unix environment and am new to
I'm a C# developer working with either Windows Forms or WPF. Sometimes I have
I've been tasked (by my wife) with creating a program to allow her to

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.