Ok here is what I am trying to do. I have a form that has an option to view event logs, when that button is clicked this is what i want it to do

pop up a window that just has a progressbar that will run as a loading bar,
but the other window that will display the logs i want to be opened at the same time, but not visible bc it sometiems takes time to load all the logs, then after a certain time the progressbar window will close and the viewlog window will become visible. for whatever reason i got lost on what to do.