Roger Garrett

Roger Garrett

  • NA
  • 9
  • 21.5k

Control display priorty

Apr 4 2011 3:05 PM

I'm adding controls to a panel, using the .Controls.Add() function. How does Windows determine the display priority of the newly added controls? That is, if I position a new control so that it overlaps an existing control, which one shows up "on top", the older control or the newly added control?

I'm guessing that it uses the order of the controls as they reside in the Controls array, with the lower indexed ones having lower display priority than the higher indexed ones.

Is that correct? 


Answers (1)