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

Flimmern beim Zeichnen auf einer Form

Hallo NG

Ich zechne einen Kreis auf eine Form, welcher seine Position alle 10ms
ändert. Dies mache ich mit einem Timer. Nun fährt der Kreis jedoch
nicht schön, sondern es flackert die ganze Zeit, so dass man den Kreis
nur teilweise sieht.

Mein Code ist so aufgebaut, dass ich den Kreis zeichne, dann die
Position des Kreises ändere und anschliessend ein Refresh auf der Form
aufrufe, damit der Kreis mit seiner neuen Position übernommen wird.
Also die Position wird jeweils für den nächsten Aufruf eingestellt.

Kann mir nun jemand sagen, ob das flackert, da es vielleicht zu schnell
ist, alle 10ms ein Refresh oder was das Problem sein könnte.

Danke Schon im Voraus.

Gruss Adi

Mar 15 '06 #1
1 3217
Please note that this is an english group.
Solution to the problem with flickering you have described is
doublebuffering. If you are using .NET Framework 2.0, you can enable it just
by setting Form's protected property DoubleBuffered to true.
Try to look here
http://msdn.microsoft.com/msdnmag/is...msPerformance/
or google for doublebuffering

<ad******@bluemail.ch> wrote in message
news:11**********************@j52g2000cwj.googlegr oups.com...
Hallo NG

Ich zechne einen Kreis auf eine Form, welcher seine Position alle 10ms
ändert. Dies mache ich mit einem Timer. Nun fährt der Kreis jedoch
nicht schön, sondern es flackert die ganze Zeit, so dass man den Kreis
nur teilweise sieht.

Mein Code ist so aufgebaut, dass ich den Kreis zeichne, dann die
Position des Kreises ändere und anschliessend ein Refresh auf der Form
aufrufe, damit der Kreis mit seiner neuen Position übernommen wird.
Also die Position wird jeweils für den nächsten Aufruf eingestellt.

Kann mir nun jemand sagen, ob das flackert, da es vielleicht zu schnell
ist, alle 10ms ein Refresh oder was das Problem sein könnte.

Danke Schon im Voraus.

Gruss Adi
Mar 15 '06 #2

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

Similar topics

3
by: John | last post by:
Dear all, It been more than 3 days I am trying to debug this program, I interpret it using activePerl and it is giving (perl -wc code_process.pl) no error syntax but when I put it online, change...
1
by: Wolfram Schubert | last post by:
Hallo, ich bin noch in der Experimentierphase mit Visual Studio, habe gerade ein Test-"Projekt" WinFormHello (Form mit Button drauf, der eine Messagebox ausgibt) und möchte nun aus meinen zwei...
1
by: amir | last post by:
Hallo Ihr Experten, ich möchte aus einem Formular aus, eine bereits vorhandene Laufendenummer aus einer Tabelle.spalte auslese und dazu noch eine 1 addiere und dann das Ergebnis in ein Textfeld...
2
by: juergen.tippmann | last post by:
Hallo, kann mir jemand sagen ob ich beim Öffnen eines Formulars in Access2003, abfragen kann ob z.B. die Strg-Taste gedrückt ist oder nicht?
1
by: Michael Schindler | last post by:
Ich habe es nun erreicht, ein textfile einzulesen das nun zeile für zeile im datagrid angezeigt wird. Nun wäre es toll wenn ich das textfile zum beispiel nach jedem blank in eine spalte...
1
by: David Fedier | last post by:
hallo bei einer dll die ich am schreiben bin benutze ich bei einer funktion ein struct als rückgabewert. und wenn ich diese dll in einem anderen projekt einbinden will bekomme ich keinen...
3
by: Maximilian Hofer | last post by:
Hallo NG, wie kann man ein Bild in einer Datenbank speichern d.H. Ich habe in meinen Progrmm eine PictureBox einem mit einem Image, und ich m;chte diese Daten in einer DB speichern. Wie...
8
by: Maximilian Hofer | last post by:
Hallo NG, zum erstellen einer Anfrag an eine Website benutze ich folgenden Code: Dim encoding = New System.Text.UTF8Encoding 'Daten zum Posten zusammenbauen Dim postData As String
8
by: Andi Reisenhofer | last post by:
Hallo, Ich versuche einen Key von einem Programm (www.winhound.com) zu entfernen das sich immer wieder bei mir "einnistet". Der Schlüssel...
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...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.