473,386 Members | 1,720 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,386 software developers and data experts.

Painting form (flickering)

Hi everybody

On my form I have a procedure, which moves some textboxes and buttons...
then it makes some validations... after this it moves the objects again.

So far so good... But now I have the problem, that the form flickes every
time I move an object.

Overriding onpaint, onbackgroundpaint and refresh won't help, because after
moving the object the last time i have to call mybase.refresh and release
the event calling the mybase-events... Doing this let the form flickers
again. So I see for a short time the movements I have made...

So my question now is: How can i completely disable the painting of the
form, and when I enable it and refresh the form, it should only show the
current objects whithout "history".

Thanks for your help

Regards

Nijazi Halimaji

Jan 16 '07 #1
2 1604
SuspendLayout()

If you look at the InitializeComponent() method of any form, you can see
the proper use of it.

Tom

Halimaji Nijazi wrote:
>Hi everybody

On my form I have a procedure, which moves some textboxes and buttons...
then it makes some validations... after this it moves the objects again.

So far so good... But now I have the problem, that the form flickes every
time I move an object.

Overriding onpaint, onbackgroundpaint and refresh won't help, because after
moving the object the last time i have to call mybase.refresh and release
the event calling the mybase-events... Doing this let the form flickers
again. So I see for a short time the movements I have made...

So my question now is: How can i completely disable the painting of the
form, and when I enable it and refresh the form, it should only show the
current objects whithout "history".

Thanks for your help

Regards

Nijazi Halimaji


Jan 16 '07 #2
Halimaji Nijazi wrote:
Hi everybody

On my form I have a procedure, which moves some textboxes and buttons...
then it makes some validations... after this it moves the objects again.

So far so good... But now I have the problem, that the form flickes every
time I move an object.
I've never tried it, but how about the Forms "DoubleBuffered" property?
Please post back your findings for all to share.

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
Jan 16 '07 #3

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

Similar topics

5
by: Alien | last post by:
I have a hex editor-type class that extends UserControl and paints its data to a PictureBox. Basically the problem is that repainting it takes usually between 60 and 80ms, which may seem pretty...
1
by: Terry | last post by:
I've seen several posts from people who have seen this flashing in TreeView's when resizing a form. I've noticed it in my app, but only in the child windows. For example, my main form has a...
1
by: RickN | last post by:
I have a form loaded with a full screen form image. I've overlayed a number of controls for filling in the form. When the form opens, I can watch as each control loads (flickering). It also does...
2
by: Strath-Clyde | last post by:
Well, its advanced to me anyway. Included is the link to download the sample project and exe (Translucent_Test.exe) (too large to upload here - ~ 700k) Run the exe to see the flickering...
5
by: marfi95 | last post by:
I am having to resort to Mick's methods when it comes to hiding/showing tabpages of my tab control since .NET doesn't work correct. I think I have it finally workign the way I need, but because I...
2
by: Robert Smith | last post by:
Hello, I have a problem with a form loading a repainting. Because the form uses an office 2000 styles, when it paints it causes a lot of flickering. The standard advice is to set the following...
8
by: nirdeshonline | last post by:
Hi, I have added a simple listbox in windows form under c# 2.0. It contains a collection of approx 10 strings as list items. Now when i resize the form whole listbox flickers. Please tell me...
0
by: Halimaji Nijazi | last post by:
Hi everybody On my form I have a procedure, which moves some textboxes and buttons... then it makes some validations... after this it moves the objects again. So far so good... But now I have...
4
by: Marina Levit | last post by:
I am trying to do some processing on a background thread while keeping the UI painting. However, this is a generic server side call routine - and it needs to block until the server side call...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.