Prevent partially painted windows

Sometimes when you display a form, some of the controls appear fast, after a pause the remaining controls appear. Such partial painting doesn't look professional.

To avoid such partially painting when you show a non-modal form, use the following code:

frmTest.Show vbModeless
frmTest.Refresh