In other words, will line 2 in the below code have any effect?
// let's assume that myForm has not previously been added
myControlCollection.Add(myForm);
myControlCollection.Add(myForm); // line 2
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe that executing
Addtwice in immediate succession will have no obvious effect. However, if there are interveningAddcalls with other controls, it will – becauseAddupdates the Z-order, sending the newly added control to the back. For example:This shows
b1in front ofb2– but if you uncomment the second call toAdd(b1), the order will be reversed.