Hi guys,
i need some help with refreshing the progressbar while moving thru functions. I´d also like to change the cursor to the wait state while processing. In general i have the functions and properties, but the progress is only moving forward at the end of my called function. So this is my situation: On a Button click get-info is called. get-info is calling a couple of other functions, for example test-system, test-network, and so on... i´d like to forward the progressbar after every function but its only moving when get-info is finished. also the wait cursor is set when the get-info is finished. I´am sure that this is one silly linie of code that is missing here to refresh the forms windows, but i do not have it yet :-(
Code Snip:
function get-info
{
true-waitcursor
test-system
$progressBar1.value = 33
$objForm.Controls.Add($progressBar1)
test-network
$progressBar1.value = 66
$objForm.Controls.Add($progressBar1)
Get-Permissions
$progressBar1.value = 100
$objForm.Controls.Add($progressBar1)
}