1. make sure the background control (ListBox, whatever) and the foreground control (Panel) both have the Form as their parent. (If you were to use Visual Dersigner, and simply add the background control first, then a smaller foreground Control on top of it, it would be a child of the background, not of the form). One way of doing that is: position it outside the background color, select it, goto properties, and type a new location value. 2. at run-time, never move the controls, never change their Z-order. Let them as they are. 3. in as much as the foreground control must be transparent (visually) and must ignore the mouse (click-through), do whatever that takes (Enabled=false; for starters). :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.