Sub btnContactsList_Click
ProgressDialogShow("Creating Contacts List")
CallSubDelayed(Me,"GetContactList")
End Sub
In sub GetContactList I am creating a List of all the phone contacts and writting this into a SQLite table.
All is great, BUT the ProgressDialog is only displayed after the sub GetContactList is finished.
What am I doing incorrectly that the ProgressDialog is not display when btnContactsList is Clicked?
Try instead of showing progressdialog.. change the text of the button to " creating contact list", see if it will update the activity before generating the list
Try instead of showing progressdialog.. change the text of the button to " creating contact list", see if it will update the activity before generating the list
Sub btnContactsList_Click
' ProgressDialogShow("Creating Contacts List")
btnContactsList.Text = "Creating Contacts List"
CallSubDelayed(Me,"GetContactList")
End Sub