The function works when I put it in the form along with the Form_Load code. If I were to use the same function in different dialog boxes, wouldn't it slow my program down though?

I was always taught that it was bad programming practice.