Set the form's Modal property in the form property window