I have MDI Form that contains 2 Forms inside. both of them I set its windowstate to wsMaximized. if I want to bring second form to front, I call Form2.BringtoFront, so does the first form ( form1.BringtoFront ). Sometimes I get no problem n it works fine. But Sometimes I get an error of EAccessViolation. I try to solve this problem with :
except on EClassViolation do
but this can't solve the problem. Any suggestion for this ?
thanks in advance