Prevent double click on main forms.