GUI optimization
-
Hi all, i have an application with a menu, and each time i click on the menu a different userControle is loaded in the main view. Some of those user controls takes time to load and the display is quite ugly when loading. So i thought i could display a specific user control with something like "please wait loading" while the real user control is loading in background, and when its done display the real one. I searched all over google but couldn't find what i need, so i ask here if someone know how to do that Thanks
-
Hi all, i have an application with a menu, and each time i click on the menu a different userControle is loaded in the main view. Some of those user controls takes time to load and the display is quite ugly when loading. So i thought i could display a specific user control with something like "please wait loading" while the real user control is loading in background, and when its done display the real one. I searched all over google but couldn't find what i need, so i ask here if someone know how to do that Thanks
if you wanted to just display "please wait loading", you could consider having a function that you call when beginning to load the control to display the message, and another to close it when done. i would not bother making the app multithreaded for something this simple, as it could be more hassle, unless you still want the user to interact while the control is loading. (Though this is only my opinion.)
-
Hi all, i have an application with a menu, and each time i click on the menu a different userControle is loaded in the main view. Some of those user controls takes time to load and the display is quite ugly when loading. So i thought i could display a specific user control with something like "please wait loading" while the real user control is loading in background, and when its done display the real one. I searched all over google but couldn't find what i need, so i ask here if someone know how to do that Thanks
Why not preload all of the controls at startup (using s splash screen while this happens), then just enable and bring to front (change the z-order) the one you want to activate (disable the one being replaced). Changing the z-order will be much faster, and you get the loading out of the way at startup.
-
Hi all, i have an application with a menu, and each time i click on the menu a different userControle is loaded in the main view. Some of those user controls takes time to load and the display is quite ugly when loading. So i thought i could display a specific user control with something like "please wait loading" while the real user control is loading in background, and when its done display the real one. I searched all over google but couldn't find what i need, so i ask here if someone know how to do that Thanks
What is your application, Web or Windows? Use something like UserControl.visible = false; Label.visible = true; The reverse when user control is ready
only two letters away from being an asset