i have a progress bar and a button named Scan ian i want it to scan so the progress bar works

and none of the book i read sayed anything about it