Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted

You did it right...

 

Now... if the users want to close the form before it's loading process is donne... why load it in the first place?? Can't you make a previous & lighter (less time to load), from where the users can choose where and how to go from there?

 

Alex :p

Software bugs are impossible to detect by anybody except the end user.
Posted
How about instead of a message box you have a me.show right at the beginning of the load sub and right after have it draw Wait.. straight to the form. Then when the rest of the stuff loads, have it draw right over that Wait..
  • 10 months later...
Posted
i made this working by using a new thread and calling delegate functions in the main thread.

 

Could someone please elaborate (including code snipets in VB.NET if possible) on how this "Wait Message" with threading is accomplished.

Posted

Is this form loading when you first start the application, or is this a form the user must navigate to through some sort of menu? In the case of the former, you could create a Splash Screen, Right click your solution in the Solution Explorer and select 'New Item' and then choose 'Splash Screen' then before you call the db load table function do a

 

'Visual Basic.NET 2005
MySplashScreen.Show()

'Visual Basic.NET 2003
Dim frmSPSC as New MySplashScreen()
frmSPSC.Show()

 

If this is a screen that the user navigates to, you could still use the generic MS Splash Screen and modify the labels on it to better suit your needs.

 

HTH

-Nate

~Nate�

___________________________________________

Please use the [vb]/[cs] tags on posted code.

Please post solutions you find somewhere else.

Follow me on Twitter here.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...