views:

358

answers:

1

how do i highlight the selected item (in my case, a custom user control) in a flowlayoutpanel

+1  A: 

FlowLayoutPanel is purely for layout - it has no concept of a "selected item". You might be able to add some logic to your UserControl which changes its colour when it receives focus (and changes back when it loses focus) but that would be independent of the layout control that's hosting it.

Matt Hamilton
somehow all the events are not firing on the usercontrol (enter and leave events for example).i have one main flowpanelcontrol which hosts a list of flowpanelcontrols. each of those hosts a list of user controls.i can't seem to get any of the events firing on those user controls
ooo
Ah ok. I haven't played with UserControls for a long time but do remember having trouble with the Enter/Leave events. You may have to catch those events on the individual controls in the UserControl.
Matt Hamilton