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
2009-04-20 05:08:13
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
2009-04-20 05:26:00
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
2009-04-20 05:28:13