473,787 Members | 2,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.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 4377
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*@notmyaddre ss.com> wrote in message
news:YE******** *******@bignews 7.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*@notmyaddre ss.com> wrote in message news:qa******** *******@bignews 7.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*@notmyaddre ss.com> wrote in message news:YE******** *******@bignews 7.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.D oubleBuffer
ControlStyles.A llPaintingInWmP aint

--
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.c om> wrote in message
news:C8******** *************** ***********@mic rosoft.com...
In general, setting these styles on a .Net Control will eliminate flicker:

ControlStyles.D oubleBuffer
ControlStyles.A llPaintingInWmP aint

--
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
3475
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 - plus some buttons to dynamically resize the image. I have gotten almost everything to work - I put in a function to simply disable the right-click option of the browser, but none of the other functions work. If I copy the source data out of...
5
6674
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. Here is what I've tried so far: 1. Turning off CS_VREDRAW and CS_HREDRAW in both the parent form and a subclass of the control via the "override CreateParams" property (these values were already off). 2. Setting various styles and handling...
0
1278
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. I've seen applications that preform the resize by showing only a resizeable rectangle of the form, allowing the user to resize at will. When they release the form it redraws at the new size (as opposed to live redrawing as the form is being...
3
1507
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 taskbar. I was doing ShowInTaskbar = False - and someone here told me that wouldn't work because the browser control was ActiveX still and that ShowIOnTaskbar = false actually destroyed the window. So, I tried 2.0 Beta and the same thing happens...
5
1891
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
1183
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 set to true, should prevent this. I did that and still a lot of flickering going on. Suggestions, comments, or insight on what exactly I could be messing up?
6
3639
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 my main form in my VB.NET application. It does work and render correctly but the problem is that there is an awful flickering that happens on most PCs I try it on. The flickering is reminiscent of the sort that you get on a TV when it is not tuned...
11
2876
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 compared to the rest of the dialog when the user resizes it. Any ideas on how to do this? Thanks!
0
1495
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. When I let go the previous node is highlighted and the context menu displays. This looks awkward. How do I keep the selection highlight on the node that was right clicked? I am integrating a RSS reader into an app. I have a...
0
9655
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, 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...
0
9497
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,...
1
10110
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,...
1
7517
isladogs
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...
0
6749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
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...
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.