D Declan Well-Known Member Licensed User Longtime User May 22, 2017 #1 I am calling a sub with: Code: 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?
I am calling a sub with: Code: 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?
R ronell Well-Known Member Licensed User Longtime User May 22, 2017 #2 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 Upvote 0
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
D Declan Well-Known Member Licensed User Longtime User May 22, 2017 #3 ronell said: 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 Click to expand... Yes that works. I do: Code: Sub btnContactsList_Click ' ProgressDialogShow("Creating Contacts List") btnContactsList.Text = "Creating Contacts List" CallSubDelayed(Me,"GetContactList") End Sub Then in last line of sub GetContactList I do: Code: btnContactsBackup.Text = "Contacts List" Upvote 0
ronell said: 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 Click to expand... Yes that works. I do: Code: Sub btnContactsList_Click ' ProgressDialogShow("Creating Contacts List") btnContactsList.Text = "Creating Contacts List" CallSubDelayed(Me,"GetContactList") End Sub Then in last line of sub GetContactList I do: Code: btnContactsBackup.Text = "Contacts List"