Hi all,
I'm using a webbrowser control within an application for the UI and want
to hide the flicker and redraw when changing pages. Ideally I want to
render the new page to a seperate offscreen buffer then fade this over
the exisiting page. Can anyone recommend a good way to approach this?
thanks
Martin 6 3306
Martin,
That's something that I think is really beyond your control. There are
a number of things that are going on when you reload a page, even if you are
limiting yourself to just the redrawing operation (the page elements, active
x controls, etc, etc) and the WebBrowser control doesn't allow hooks into
that operation.
If you have control of the server side, you are better off using AJAX to
load data into the page and then modify the elements of the page after it
downloads data from the server.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Martin Slater" <ms*****@hellin c.netwrote in message
news:48******** *************@n ews.astraweb.co m...
Hi all,
I'm using a webbrowser control within an application for the UI and want
to hide the flicker and redraw when changing pages. Ideally I want to
render the new page to a seperate offscreen buffer then fade this over the
exisiting page. Can anyone recommend a good way to approach this?
thanks
Martin
Thanks for the reply Nicholas, I'm gonna still remain hopeful for a bit
longer until the more 'hacky' options are eliminated as well;)
I tried to fake this by creating 2 webbrowser controls, hiding the one
that is currently loading then flipping them when the hidden page is
fully loaded (by waiting for a DocumentComplet ed event) but this didn't
seem to work. Do you have any idea if
a) a hidden webbrowser control will render anything at all (or a way
to make it do so without being visible on screen)
b) a DocumentComplet ed event is fired after the page has fully and
completely loaded?
thanks again
Martin
Nicholas Paldino [.NET/C# MVP] wrote:
Martin,
That's something that I think is really beyond your control. There
are a number of things that are going on when you reload a page, even if
you are limiting yourself to just the redrawing operation (the page
elements, active x controls, etc, etc) and the WebBrowser control
doesn't allow hooks into that operation.
If you have control of the server side, you are better off using AJAX
to load data into the page and then modify the elements of the page
after it downloads data from the server.
It might be better to take an image of the browser control before it flickers
and show that over the top while your control renders the new page. Then you
could put it front when the loading has completed. I have a class on my blog
(specified below) which will give you an image for a control. You could then
use that in a picturebox. Would probably be a lot more light weight then
having 2 browsers.
I cant answer you first question you asked, but the document completed event
does fire after everything has been loaded. Including all images as well I
believe.
--
Ciaran O''Donnell http://wannabedeveloper.spaces.live.com
"Martin Slater" wrote:
Thanks for the reply Nicholas, I'm gonna still remain hopeful for a bit
longer until the more 'hacky' options are eliminated as well;)
I tried to fake this by creating 2 webbrowser controls, hiding the one
that is currently loading then flipping them when the hidden page is
fully loaded (by waiting for a DocumentComplet ed event) but this didn't
seem to work. Do you have any idea if
a) a hidden webbrowser control will render anything at all (or a way
to make it do so without being visible on screen)
b) a DocumentComplet ed event is fired after the page has fully and
completely loaded?
thanks again
Martin
Nicholas Paldino [.NET/C# MVP] wrote:
Martin,
That's something that I think is really beyond your control. There
are a number of things that are going on when you reload a page, even if
you are limiting yourself to just the redrawing operation (the page
elements, active x controls, etc, etc) and the WebBrowser control
doesn't allow hooks into that operation.
If you have control of the server side, you are better off using AJAX
to load data into the page and then modify the elements of the page
after it downloads data from the server.
I haven't tried this, but it might be possible to use JavaScript to fade
out/in the page as long as you can programmaticall y alter the HTML
code/OnLoad (OnUnload?) events inside the WebBrowser. There are webpages
which do exactly this.
Best Regards,
Stanimir Stoyanov | www.stoyanoff.info
"Martin Slater" <ms*****@hellin c.netwrote in message
news:48******** *************@n ews.astraweb.co m...
Hi all,
I'm using a webbrowser control within an application for the UI and want
to hide the flicker and redraw when changing pages. Ideally I want to
render the new page to a seperate offscreen buffer then fade this over the
exisiting page. Can anyone recommend a good way to approach this?
thanks
Martin
On Jul 20, 6:28*am, Martin Slater <msla...@hellin c.netwrote:
Hi all,
I'm using a webbrowser control within an application for the UI and want
to hide the flicker and redraw when changing pages. Ideally I want to
render the new page to a seperate offscreen buffer then fade this over
the exisiting page. Can anyone recommend a good way to approach this?
thanks
Martin
On Jul 20, 6:28*am, Martin Slater <msla...@hellin c.netwrote:
Hi all,
I'm using a webbrowser control within an application for the UI and want
to hide the flicker and redraw when changing pages. Ideally I want to
render the new page to a seperate offscreen buffer then fade this over
the exisiting page. Can anyone recommend a good way to approach this?
thanks
Martin
Dear Martin
I am not very much practiced person of .NET . But here I may suggest
something.
You can make the browser window transperent (don't make fully
transprent) I saw similar appreach in "Paint.NET" . Just google it.
Its opensource software. In it when you move the mouse out of the
color toolbox that tool window becomes opaque.
yours
Advait This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Vetrivel |
last post by:
Application architecture : Develop interface between two existing
systems,
a. Enterprise CRM system
b. Web based intranet system.
Environment : Intranet
Server : IIS and ASP.
Script : VBScript and Javascript
Client : 1. IE browser.
2. VBForm embedded with WebBrowser control (MS Internet
|
by: Charles Law |
last post by:
Sorry for the cross post, but I'm not sure who is best placed to answer this
one.
This is the most bizarre behaviour of MSHTML and streams.
I have a WebBrowser control that contains nothing but some default HTML. I
want to copy the document and modify it before saving it to disk.
So, I clone the document like this:
|
by: Ziyad Makki |
last post by:
Hello,
I have created a Web Composite Control. I have also created a designer class
that is used to render the control at design time.
All though it dose work, I have been experiencing some strange behaviour
with the control. The following steps describe what I'm doing to cause the
problem.
* After dragging and dropping the control onto my page. I change some of
the properties of the control. This is done using the property window.
*...
|
by: MrGiga (Robb Sadler) |
last post by:
I have a set of pages with C# code attached to manage session information.
They hang their info off of the session string and store it in a MSDE table.
I have all of this code working well in one app and started another app which
needed much of the same functionality. So I copied the pages, code behinds,
web.config and appropriate DB tables to the new app (all on localhost) and
find that I am get redirected every time I login back to my...
|
by: Jason Boardman |
last post by:
Can anyone tell me how I can write HTML to a WebBrowser control in
Visual Basic 6? I want to display HTML in the browser that is generated
from within my VB program (as opposed to loading it from a file or URL).
Is this possible?
Jason
| |
by: Anil Gupte |
last post by:
....and how do I insert one into my form? I used in VB 6.0 last, but cannot
figure out where it is in .Net
Thanx,
--
Anil Gupte
www.keeninc.net
www.icinema.com
|
by: Cesar |
last post by:
Hello people. I'm having a Winform app that contains a webbrowser control
that keeps navigating from one page to another permanentrly to make some
tests. The problem I'm having is that after a while, the application is
using more than 100 or 150 Mb in RAM, and if I let it continue, it can leave
the system without memory. I've been watching in some pages that other
people has the same problem with this control when keep navigating for a...
|
by: scottietrek |
last post by:
I have a webbrowser control that allows me to save username and password infromation for a proxy server and i have been successful in changing the system default proxy for my application. What i now need to accomplish is to have a seperate proxy for each instance of the webbrowser control. i have thread a simple version of the application. but that did not work i was wondering if i could set an instance of the IWebProxy to allow for the change...
|
by: heyi |
last post by:
hi,
i'm making an app which uses a webbrowser control to show some offline (not cache) html pages like a slide show. let's say pages in a folder on the desktop etc...
when it came to testing the whole thing, i figured out that the images in the html are not visible on the webbrowser control. instead there is a space where the image should be, corresponding the actual image dimensions..
and when i right click on this empty space where...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |