Modify the main form size and using double buffer.