Why does not bring to front on a control work

T

Tony Johansson

I place two user control(CardGUI) from left to right and I always want the
last control added to be on top so I use the BringToFront but it does not
work.
This BringToFront on my user control CardGUI does not bring that control to
front it is still in the back.
I have a panel that I put these user control in and I always want the last
added control to be in the front.
I have read the docs and it doesn't say any strange about this. It says
"The control is moved to the front of the z-order. If the control is a child
of another control, the child control is moved to the front of the z-order.
BringToFront does not make a control a top-level control, and it does not
raise the Paint event."
I don't get any kind of error it just don't do what I have told it to do
which is bring the control in front.

Does anyone have any comment about this matter ?

//Tony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top