WinForms not showing
Posted on 2012-03-28
I have an application that I designed in VB.net. What I am trying to do is upon clicking the exit button in my application I want another WIndows Form to show and perform my "backup procedure". The situation is the backup procedure works and takes about15 seconds to complete. However the form does not show up. The main form just stays on the screen, and then after the backup conmpletes the program exits (which is what it is supposed to do upon completion of backup procedure).
I want the backup form to show while it is doing the backup procedure because there is a progress bar on there that I want to display, of course, the progress of the backup. How can I get the form to display without just executing tyhe code and not showing the form? I have a frmBackup.SHOW and I have tried frmBackup.ShowDialog() but nothing shows the form. It is loading because the form contains the backup procedure and it is running.
Any help is greatly appreciated.