Are you implementing this in Windows. I ask because a progress bar is a graphic and therefore OS dependent.