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 64k
  • Answers 64k
  • 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 I don't believe you can. You'd have to subclass NSButtonCell… May 11, 2026 at 10:59 am
  • added an answer Unless the online/offline thing is what will distinguish your application,… May 11, 2026 at 10:59 am
  • added an answer You can intercept the keystrokes in the PreviewKeyDown event. Set… May 11, 2026 at 10:59 am

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 working in C, and I have to concatenate a few things. Right now
I am currently working in C#, and I need to insert a new record
I am working in C to implement pseudo-code that says: delay = ROUND(64*(floatDelay -
I'm working in .Net 3.5sp1 in C# for an ASP.Net solution and I'm wondering
Does anyone know how to get IntelliSense to work reliably when working in C/C++
I am a .NET developer and I've been working in C# for almost 3.5
I just ran across this error message while working in C# A property or

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.