I have the following code:
Code:Private Sub btnConfirm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConfirm.Click Try CheckSignature() If flashBMSign = False And flashCustSign = False And flashConsSign = False Then If FnProcessApproval() Then If chkCOOApproval.Checked = True And strRole <> "COO" Then MsgBox("Successfully pass the approval to COO!") Else MsgBox("Successfully Confirm Approval.") End If End If End If Catch ex As Exception MsgBox(ex.Message, MsgBoxStyle.Information, Me.Text) End Try End Sub
May I know how can I put a progress bar to make it keep running when the function FnProcessApproval() is running and stop when the messagebox is display?




Reply With Quote