I am trying to display waiting message which is actually a form while long process is running in some different file. Issue i am facing is the form get disappeared once the process gets started but its still active and running the process
My code:
As the process goes in UpdateSchema() which takes around 30-45 sec to finish the form gets disappear.Is there any way to keep the form intact on screen until my process gets complete??
My code:
Code:
Dim objWait As New frmWaitupdate
Dim strReply As String
Dim ischange As Boolean
Dim obj1 As New MyBO.UpdateSchemaBO()
ischange = obj1.CheckSchemaChanges(Application.ProductVersion.ToString())
If ischange = True Then
lblMsg.Text = "Schema changes found please wait Please wait."
obj1.AddVersionTable(Application.ProductVersion.ToString())
Me.Visible = True
strReply = obj1.UpdateSchema(Me)
If strReply <> "" Then
MessageBox.Show(strReply, "abc")
Else
MessageBox.Show("Schema updated successfully", "abc")
End If
'objWait.Hide()
ElseIf ischange = False Then
MessageBox.Show("No schema changes found", "abc")
End If
End If
Comment