Web Browser UI Freeze
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
8 posts
Page 1 of 1
Hi Guys Smiley Here
I was wondering if anyone could help me stop my application's UI from freezing when a web browser loads a web page, any suggestions? cooll;
I was wondering if anyone could help me stop my application's UI from freezing when a web browser loads a web page, any suggestions? cooll;
Well is double buffer on and if so may I be slightly insulting and
say it could just be your code, I my self have put so much code
in one event that it just cant handle it on my PC so try putting things
into functions and adding checks to see if they need to run and on excute them should they need to.
I would sugest checking your document load event as this is the spot that is probally a problem if its a browser and it boots fine if it crashes on boot try looking at form load event as well
But at the moment this is all guessing work of things I would look at until we get more info I can help maybe some info on what your application is and what its doing and maybe some code or any errors that might come up
say it could just be your code, I my self have put so much code
in one event that it just cant handle it on my PC so try putting things
into functions and adding checks to see if they need to run and on excute them should they need to.
I would sugest checking your document load event as this is the spot that is probally a problem if its a browser and it boots fine if it crashes on boot try looking at form load event as well

But at the moment this is all guessing work of things I would look at until we get more info I can help maybe some info on what your application is and what its doing and maybe some code or any errors that might come up
It is freezing because it is not asynchronous.
Use async methods or try to set up new thread for browser.
Use async methods or try to set up new thread for browser.
I think the web browser control is already async but still freezes up the UI when loading some pages. I had this problem when I was making some programs that used the web browser and never managed to find a solution to it so I think you're stuck with it freezing.
If there is a solution I would also like to know what it is dunnno;
If there is a solution I would also like to know what it is dunnno;
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
muttley1968 wrote:Well is double buffer on and if so may I be slightly insulting andHi muttley1968
say it could just be your code, I my self have put so much code
in one event that it just cant handle it on my PC so try putting things
into functions and adding checks to see if they need to run and on excute them should they need to.
I would sugest checking your document load event as this is the spot that is probally a problem if its a browser and it boots fine if it crashes on boot try looking at form load event as well![]()
But at the moment this is all guessing work of things I would look at until we get more info I can help maybe some info on what your application is and what its doing and maybe some code or any errors that might come up
Im not sure if you can double buffer a webbrowser if you can i would be interested in learning that but the form was double buffered and that didn't do anything, its not an individual application i have noticed this ever since i started using webbrowsers in offBeat and could not find a fix anywhere for the freeze.
Thanks for the suggestions, Smiley cooll;
Ffenixw0rks wrote:It is freezing because it is not asynchronous.
Use async methods or try to set up new thread for browser.
Ffenixw0rks wrote:Ok then. Another reason is that it could resolve website address.Hi Ffenixw0rks
Also don't you whant to use some other web control? Like Gecko or Chromium?
I found many different methods of threading a webbrowsers events if that what you mean, unfortunately none of them worked.
I would love to use another webbrowser control but only for a full webbrowser application, increasing the size of a small application by 50mb or so just to reduce a few seconds of lag would be a waste of space
Thanks for the help, I'm very interested in that chromium control cooll;
CodenStuff wrote:I think the web browser control is already async but still freezes up the UI when loading some pages. I had this problem when I was making some programs that used the web browser and never managed to find a solution to it so I think you're stuck with it freezing.Yeah Microsoft has really neglected the webbrowser control i generally use webclients but sometimes i need to load the page in a webbrowser. cooll;
If there is a solution I would also like to know what it is dunnno;
8 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023