alanchinese
Regular
- Joined
- Jan 12, 2005
- Messages
- 62
my forms takes a while to load because it needs to select a huge table.
thereform, i want my forms to display a "wait..." messagebox: inside the load function, a messagebox is display in the beginning, and automatically close by itself right before the load function ends.
the "wait..." message box also includes a button called "cancel", that when the user is out of patience they can click it and terminate the form.
i made this working by using a new thread and calling delegate functions in the main thread. i just wonder how others are handling this issue.
furthermore, i wish i can have a thread that loads each section of data into different tabpages. that will greatly inprove the user interfaces, since most of the users are impatience and try to close the form before it finishes loading.
thereform, i want my forms to display a "wait..." messagebox: inside the load function, a messagebox is display in the beginning, and automatically close by itself right before the load function ends.
the "wait..." message box also includes a button called "cancel", that when the user is out of patience they can click it and terminate the form.
i made this working by using a new thread and calling delegate functions in the main thread. i just wonder how others are handling this issue.
furthermore, i wish i can have a thread that loads each section of data into different tabpages. that will greatly inprove the user interfaces, since most of the users are impatience and try to close the form before it finishes loading.