Previous | Index | Next 

[HOWTO] Reduce flickering in graphic operations

In some cases, a series of graphic operation generates some flickering under .NET, even if the corresponding set of actions performs correctly under VB6.

When this happens, you can attempt to reduce flickering by assigning True to the DoubleBuffered property that is exposed by the VB6Form, VB6PictureBox, and VB6UserControl classes. A good place to assign this property is in the code-behind portion of the form, by means of a WriteProperty pragma:

        '## Picture1.WriteProperty DoubleBuffered, True 

 

Previous | Index | Next