*Experts* DiverDan Posted October 11, 2003 *Experts* Posted October 11, 2003 I've got a panel that moves across the screen with the mousedown event. Everything works well except when moving over a listview control. The panel moves behind the listview and out of sight. Is there a way for the panel to move over the listview and remain in sight? Thanks Dan Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
*Experts* Volte Posted October 11, 2003 *Experts* Posted October 11, 2003 Try calling Panel1.BringToFront() Quote
*Experts* DiverDan Posted October 11, 2003 Author *Experts* Posted October 11, 2003 Hi VolteFace, I did that and was unsuccessful. But, that gave me an idea...If I create the panel in the listview instead of outside of it, it works...hmmmm? Thanks Dan Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
*Experts* Volte Posted October 11, 2003 *Experts* Posted October 11, 2003 It's probably just because you created the panel and then the listview, so the listview takes Z-Order priority. If you right clicked on the panel and clicked "Bring to Front" it would probably have fixed it. Quote
*Experts* DiverDan Posted October 11, 2003 Author *Experts* Posted October 11, 2003 Nope, that won't do it. Evidently it must be created in the listview only. Moving it, in designer mode, to another panel or group box and bringing it to front still puts it behind the listview in run time. Sending the listview to back also has no effect. This is definately a strange one. Thanks Dan Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
*Experts* Volte Posted October 11, 2003 *Experts* Posted October 11, 2003 I don't understand what you mean by "in" the listview. ListView controls are not containers, and so cannot contain other controls in the designer. Do you mean the ListView is inside the Panel? Quote
*Experts* DiverDan Posted October 11, 2003 Author *Experts* Posted October 11, 2003 No, the listview is not inside a panel. Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.