I have written a class to backup and restore SQL databases using SMO. What I am wanting to do is use a form to display a progressbar to display the percentage as the backup or restore happens. I have the code to implement this and the delegate, but I wrote the class without thinking about the form. I really want to initialize and use my class like this.
MySMO smo = new smo();
I then want the form to open and display the progressbar. Any ideas on how to implement this?