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.
8 posts Page 1 of 1
Contributors
User avatar
Smiley
VIP - Donator
VIP - Donator
Posts: 269
Joined: Sat Dec 19, 2009 3:39 pm

Web Browser UI Freeze
Smiley
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;
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Re: Web Browser UI Freeze
muttley1968
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
User avatar
Ffenixw0rks
VIP - Donator
VIP - Donator
Posts: 152
Joined: Sun Jun 19, 2011 2:51 pm

Re: Web Browser UI Freeze
Ffenixw0rks
It is freezing because it is not asynchronous.
Use async methods or try to set up new thread for browser.
Image
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: Web Browser UI Freeze
CodenStuff
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;
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Ffenixw0rks
VIP - Donator
VIP - Donator
Posts: 152
Joined: Sun Jun 19, 2011 2:51 pm

Re: Web Browser UI Freeze
Ffenixw0rks
Ok then. Another reason is that it could resolve website address.

Also don't you whant to use some other web control? Like Gecko or Chromium?
Image
User avatar
Smiley
VIP - Donator
VIP - Donator
Posts: 269
Joined: Sat Dec 19, 2009 3:39 pm

Re: Web Browser UI Freeze
Smiley
muttley1968 wrote:
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
Hi muttley1968

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;
User avatar
Smiley
VIP - Donator
VIP - Donator
Posts: 269
Joined: Sat Dec 19, 2009 3:39 pm

Re: Web Browser UI Freeze
Smiley
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.
Also don't you whant to use some other web control? Like Gecko or Chromium?
Hi Ffenixw0rks

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;
User avatar
Smiley
VIP - Donator
VIP - Donator
Posts: 269
Joined: Sat Dec 19, 2009 3:39 pm

Re: Web Browser UI Freeze
Smiley
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.

If there is a solution I would also like to know what it is dunnno;
Yeah Microsoft has really neglected the webbrowser control i generally use webclients but sometimes i need to load the page in a webbrowser. cooll;
8 posts Page 1 of 1
Return to “Coding Help & Support”