I have a container control (a Panel
) that has a number of Forms
loaded into it. Based on user interaction, I .BringToFront()
certain forms. However, in other parts of the program, I would like to figure out which form is currently in front. (In other words, determine which was the last form to have its .BringToFront()
method called.)
What's the best way to go about determining which control is in front?