473,657 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Flickering while refreshing

Hi,

I'm using a UserControl object for all the graphics handling in my
application. However, if I select an image and move it around, I get
flickering. So in order to get rid of the flickering, I added this code in
the constructor of the UserControl:

this.SetStyle(C ontrolStyles.Al lPaintingInWmPa int |
ControlStyles.D oubleBuffer, true);

Now the control doesn't flicker, but I still get some minor flickering of
the image I am moving, and if I move the mouse too quickly, the image will
not "keep up" with the mouse pointer.

Any suggestions?
Nov 16 '05 #1
1 1903
how exactly are you moving that image around? If you are doing all
your painting to the Graphics object that comes through onpaint then
if your using doublebuffer and all painitng in paint you shouldn't get
any flicker at all. Are you instead using a second control and
painting on that perhaps?

Also, are you overriding OnPaintBackgrou nd?

Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website url here.com

On Mon, 19 Apr 2004 12:43:21 -0400, "Jack Smash"
<so*****@somewe bsite.com> wrote:
Hi,

I'm using a UserControl object for all the graphics handling in my
application. However, if I select an image and move it around, I get
flickering. So in order to get rid of the flickering, I added this code in
the constructor of the UserControl:

this.SetStyle( ControlStyles.A llPaintingInWmP aint |
ControlStyles. DoubleBuffer, true);

Now the control doesn't flicker, but I still get some minor flickering of
the image I am moving, and if I move the mouse too quickly, the image will
not "keep up" with the mouse pointer.

Any suggestions?


Nov 16 '05 #2

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

Similar topics

0
1617
by: BestNews | last post by:
Hi, I used an ActiveX control in C# client Application . I have created 'n' number of ActiveX controls on the UserControl. After user interaction some of the activeX control have to be refreshed with new data and location. So to achieve this I used Refresh() but now the problem is, this refreshing happens frequently hence causing flickering.Can any one help me solve this flickering thanking u in advance subash.
3
1959
by: Shoaib | last post by:
I have an IFRAME in HTML page whose source is set to some xml page.XML page gets displayed properly. But when i open some other IFRAME on top that IFRAME displaying xml, there is lot of flickering if i move the IFRAME window or enter some text. Both IFRAME contains veery simple XML and HTML. Can anyone tell me cause of flickering?? Any attribute i need to set? Any tips?
6
8854
by: Joaquin Grech | last post by:
Hi I did alot of research on this on the web and msdn and I couldn't find anything. I have a listview showing as a grid (table looking, with rows and columns and no images at all, only text). I get the information to display on the listview from the network and I add items often and stuff. But more than adding items, what worries me is the step of modifying items.
2
8609
by: John Lee | last post by:
Hi, I have a windows application that uses the listview to display about 50 items in detailed view - 4 columns. The first column is static and other columns will be updated in 100-1000ms - it looks awful when it's running - flickering too much!!! Anyone know how to solve this flickering problem? or how should I deal with this issue? I see some other C++ app can display more than 100 items without any flickering in such as speed. Can...
2
2520
by: John Lee | last post by:
Thanks Jay for your response. I tried your code and it still flickering a lot. To demonstrate it, you can grab a listview, create 3 columns - name, value, timestamp, in form_load event to add 50 items into that listview as Item1 - Item49, add a timer to your windows form, set the timer interval to 100 ms, in the event handler, add the code to update the value and timestamp Random r = new Random(); listView1.BeginUpdate();
0
935
by: Praveen Balanagendra via .NET 247 | last post by:
Hi, I have many server control dropdown list in aspx page, on changing of one whole page gets refresh which causes lot of flickering..this looks odd. Is their any way to reduce flickering ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>2td746Ng50uU5xtx2YP55w==</Id>
5
2344
by: n00b | last post by:
I have some forms with maybe around 30 controls on each and anytime I load these forms different parts of it start flickering though not all of them at once and not the same ones everytime. the forms are each generally separated into 2-3 different panels and they start flickering with no apparent pattern. I've tried turning on double buffering, same thing, no improvements. I've tested it on different computers with different specifications...
6
3627
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...
1
3464
by: sj | last post by:
Flickering Subform! I am developing a Quotation system in Access 03. At entry, users enter data thru' a form with subform. However, the subform keep flicker when I run the system on computer using runtime. This problem don't happen on set that has full ver of Access. Any advise? Pls Help, I have pulled off so much hair on this.
0
8397
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
8310
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,...
0
8827
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, 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...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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,...
0
7333
agi2029
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...
1
2731
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
1957
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1620
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.