[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1135
  • Last Modified:

Need C# GUI Layout Advice

I have a search sidebar. When I search (for people) I want to display a list of items in the panel. Obviously, it has to scroll when the list becomes longer than the container.

Each item in the results list will take up one row.

Each item will comprise:
    an icon 32x32, left-aligned in the cell
    a line of bold black text, aligned at the top-left of the cell (but on the right of the icon)
    a line of gray text, aligned at the bottom left of the cell (but on the right of the icon)

What would be the best control to use?

ListBox will only show text
ListView will only show simple pictures and text (afaik)

I'm thinking about using a TableLayoutPanel, with a single column of cells. In each cell I will put another complicated table (or other container?) with images and labels formatted and aligned correctly.

(I also want to be able to select different types of preset view, e.g. no icon - just the bold text)

Will using a TableLayoutPanel make it difficult to give visual feedback on mouseOver? (I can't find an easy/elegant way to detect mouseOver a particular cell in a TableLayoutPanel)

Is there a better way?

Thanks for any advice.
0
as2003
Asked:
as2003
1 Solution
 
Bob LearnedCommented:
I would think that you could attach a MouseOver event handler to the control, before you add it to the TableLayoutPanel.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now