In our project I created a form and run it like below:
Application.run(myform);
In this form we need draw something so its OnPaint method is overridden and there is no problem normally, however OnPaint is never called when we show a messagebox or form like:
Messagebox.show("something");
or
formA.showDialog();
So when users drag the messagebox, it will leave tracks because the background can't be repaint. Does any one know why and how to solve this problem?