Yesterday, there was a friend asked me how to handle overlapping controls, so that the specified control is on top. I am very crazy, why is this kind of need, but I am busy yesterday, there is no time. I will write this morning. A piece of code is trying, as follows: setMetop is the first function, button1_click is a test method, test, which is feasible. Why use an arrrylist instead of using index to delete a control After that, it will cause the index of the following controls to add 1, which will produce some abnormalities. This is just a function of writing. Maybe .Net itself has a way to set up, but I don't know. Ha ha .. Welcome to Education: AppleDotNet @ Hotmail. COM
Void setMetop (Object obj) {// Principle: The first added control will be on the top, that is, the order is determined by Index. Int index = this.controls.getChildIndex ((control) obj); // Top Control INDEX ArrayList (); // Used to load the container for the control (INT i = 0; i