How do i make a delay?

Hi so im new to coding and Xojo. Im making a Desktop Program, in my program when you press a button a alert box pops up ( MessageDialog.Show(“Starting”)
then i want a ProgressBar to start and then after a delay another alert box pops up. However i do not know how to make the ProgressBar or the delay happen. So can someone help me please?

Load the Example in:
Examples - Desktop - Controls - ProgressBar.xojo_binary_project
that will help you.

Thank You!