Displaying progress form

the_sponge

New member
Joined
Jun 20, 2007
Messages
1
Programming Experience
Beginner
Hi

I have created a VB application that runs a form (input_form) which takes on input for a sql restore

When I click a continue button on this form to call a method that runs a stored procedure based on user input,I want to close my input_form and open a progress form. What i have tried so far is not working. The input form does not close, the progress form opens but both of them behave funny. For example they start going see through in parts -- like thay are taking strain or something

Here is my code for Continue button:

Private Sub Continue_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles continue.Click

Me.Close()
Call Scripting_Restore.script(Database.Text, NewDatabase.Text, BackupDirChoiceTextBox.Text, dataDirChoiceTextBox.Text, logDirChoiceTextBox.Text, ServerName.Text, RedgateCheckBox.Checked)
End Sub

In the Scripting_Restore.script method
I write Progress.show()

I feel like im missing something fundamental but not sure what?

Let me know if you need more info

thanks
Chris
 
Back
Top