You can use progress bar control over form to show the status progress over the screen
like 10%, 40% and 100%.
We have progress bar control over VB.net, drag and drop that control over the screen.
ProgressBar1.Value = 10
--- Perform some task.
ProgressBar1.Value = 40
--- Perform some task.
ProgressBar1.Value = ProgressBar1.Maximum;
ProgressBar1.Value = 0
Now if you are calling some functions so you can pass the reference of this Progressbar
control over functions and manage the status of progress bar from functions also.
Public Function SyncToOracle(ByRef p_objProgressBar As ProgressBar)
p_objProgressBar.Value = 10
ProgressBar1.Value = 40
--- Perform some task.
ProgressBar1.Value = ProgressBar1.Maximum
ProgressBar1.Value = 0
End Function
--You call the function and pass the object of progress bar control over the function
SyncToOracle(ProgressBar1)