Do not place a call to MessageBox.show () in the Paint event handler, the message box can overwrite some clients,
Send another PainTM event. Then continue to trigger another Paint event ... and do not place any console.read () or console.readline () call in the PAINT event or any event handler. However, console.write () or console.writeline () call is secure.