473,387 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

.Net 2.0 - Webbrowser control flickering on resize....

Has anyone seen a fix for the flickering effect you get when resizing a
Webbrowser control?

It's really irritating and doesn't make for a professional-looking
application.
Dec 10 '05 #1
5 4360
Evidentially the flickering has to do with the Microsoft tab control that I
used to host the Microsoft webbrowser control. If I use a 3rd party tab
control (like DotNetBar) the flicker is almost non-existent.

But......if you know how to remedy this Microsoft tab control flicker
problem, please let me know.

"Jim Hubbard" <Ji*@notmyaddress.com> wrote in message
news:YE***************@bignews7.bellsouth.net...
Has anyone seen a fix for the flickering effect you get when resizing a
Webbrowser control?

It's really irritating and doesn't make for a professional-looking
application.

Dec 10 '05 #2
I just tried putting the WebBrowser control on a Panel on top of the Tab control and that was really bad.
It seems that the WebBrower control does best(least amount of flickering) on a form itself. Too bad, I can
see where having a Tabbed browser would be nice ( FireFox).
james

"Jim Hubbard" <Ji*@notmyaddress.com> wrote in message news:qa***************@bignews7.bellsouth.net...
Evidentially the flickering has to do with the Microsoft tab control that I used to host the Microsoft webbrowser control. If
I use a 3rd party tab control (like DotNetBar) the flicker is almost non-existent.

But......if you know how to remedy this Microsoft tab control flicker problem, please let me know.

"Jim Hubbard" <Ji*@notmyaddress.com> wrote in message news:YE***************@bignews7.bellsouth.net...
Has anyone seen a fix for the flickering effect you get when resizing a Webbrowser control?

It's really irritating and doesn't make for a professional-looking application.


Dec 11 '05 #3
In general, setting these styles on a .Net Control will eliminate flicker:

ControlStyles.DoubleBuffer
ControlStyles.AllPaintingInWmPaint

--
Greg McPherran
www.McPherran.com
"Jim Hubbard" wrote:
Has anyone seen a fix for the flickering effect you get when resizing a
Webbrowser control?

It's really irritating and doesn't make for a professional-looking
application.

Dec 11 '05 #4
There is a DoubleBufferd property that is evidentially overridable
(according to
http://msdn2.microsoft.com/en-us/lib...buffered.aspx).

As I am just learning .Net (starting with .Net 2.0) I'll have to figure out
how to do this and if it will give the desired effect.

After all, if I override a protected property, aren't I just replacing it's
internal code with my own? And, if that is the case, I won't be changing
any internal settings of the Webbrowser class and won't have any effect on
its double buffering.

Does that make any sense?
"Greg" <gm@mcpherran.com> wrote in message
news:C8**********************************@microsof t.com...
In general, setting these styles on a .Net Control will eliminate flicker:

ControlStyles.DoubleBuffer
ControlStyles.AllPaintingInWmPaint

--
Greg McPherran
www.McPherran.com
"Jim Hubbard" wrote:
Has anyone seen a fix for the flickering effect you get when resizing a
Webbrowser control?

It's really irritating and doesn't make for a professional-looking
application.

Dec 11 '05 #5
"Jim Hubbard" wrote:
There is a DoubleBufferd property that is evidentially overridable
(according to
http://msdn2.microsoft.com/en-us/lib...buffered.aspx).

As I am just learning .Net (starting with .Net 2.0) I'll have to figure out
how to do this and if it will give the desired effect.

After all, if I override a protected property, aren't I just replacing it's
internal code with my own?

No. Whenever you create a control it is based on (derived from) the .Net
control. The properties such as DoubleBuffer are there to be set in any way
you like. You're not "overriding" the property you are just setting its value
to what you want it to be.

You are confusing overriding with setting a value. Yes you are "overriding"
the value in a sense but in C#/C++ the word "override" means to replace the
implementation of a function/method/property.

It's fine to set the value of the property - that's what it's there for.
Jan 7 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Trevor Fairchild | last post by:
I'm trying to have VB6 write an html file during run-time, with some VBScript functionality. The intent is to display images based on the current record within the program - using a WebBrowser -...
5
by: Ian Stiles | last post by:
I have tried everything under the sun to get rid of horrible flashing and flickering that occurs on a CSharp form when the form hosts a TreeView or WebBrowser control and then you resize the form....
0
by: Chris Murphy via DotNetMonster.com | last post by:
Hi all, I've been struggling with this problem for a while: I have a form (my main form) that contains quite a few controls, and I've been experiencing a lot of flickering when I resize the form....
3
by: Mitchell Vincent | last post by:
I can't find the post now but several months back I posted a problem I was having using the WebBrowser control when trying to have a systray icon pop back up a window that hadn't been shown in the...
5
by: Jim Hubbard | last post by:
Has anyone seen a fix for the flickering effect you get when resizing a Webbrowser control? It's really irritating and doesn't make for a professional-looking application.
1
by: RWF | last post by:
I have been experimenting with the new WebBrowser object in .NET 2.0. One thing I noticed is that on resize it flickers like crazy. The docs state that the protectd DoubleBuffer property, when...
6
by: Mark Thompson | last post by:
I have a problem with my Visual Basic .NET 2003 application which I have so far been unable to resolve. I am trying to get an OpenGL control that I have created working properly as a control on...
11
by: herman404 | last post by:
Hi everyone, I have a DataGrid that displays data on a dialog application. When the dialog is resized, the datagrid keeps the same shape, We would need the datagrid to keep a relative shape...
0
by: SirPoonga | last post by:
I am not liking the default behavior the treeview with right clicking. I have a treeview with a context menu assigned to it. When I hold the right mouse button on a node the node is highlighted. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.