Click here to Skip to main content
16,006,355 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralCOM interop Pin
Manju13-Jun-05 3:19
Manju13-Jun-05 3:19 
GeneralVS 2002 and VS 2003 at the same time… Pin
anderslundsgard12-Jun-05 23:28
anderslundsgard12-Jun-05 23:28 
GeneralRe: VS 2002 and VS 2003 at the same time… Pin
toxcct13-Jun-05 1:10
toxcct13-Jun-05 1:10 
GeneralRe: VS 2002 and VS 2003 at the same time… Pin
anderslundsgard13-Jun-05 3:06
anderslundsgard13-Jun-05 3:06 
GeneralGetting rid of lag with pictureBox Pin
pcxboy11-Jun-05 19:00
pcxboy11-Jun-05 19:00 
GeneralRe: Getting rid of lag with pictureBox Pin
Robert Rohde11-Jun-05 20:42
Robert Rohde11-Jun-05 20:42 
GeneralRe: Getting rid of lag with pictureBox Pin
pcxboy11-Jun-05 20:50
pcxboy11-Jun-05 20:50 
GeneralRe: Getting rid of lag with pictureBox Pin
Robert Rohde11-Jun-05 21:16
Robert Rohde11-Jun-05 21:16 
(I'll use C# syntax as Im not very familiar with C++)
A simple double buffering can be enabled by adding this in the constructor of your form/control:
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.DoubleBuffer, true);


Does your image have the correct size or do you resize it while painting? If it has already the correct size use the DrawImageUnscaled function. If not resize it somewhere in the beginning:
Bitmap resizedBitmap = new Bitmap(wantedWidth, wantedHeight);
Graphics g = Graphics.FromImage(resizedBitmap);
g.DrawImageUnscaled(oldBitmap, 0, 0, wantedWidth, wantedHeight);
g.Dispose();
//resizedBimtap is ready to use


EDIT: You should also search for 'double buffering' here on CodeProject. There are some articles which might be interesting for you.
GeneralRe: Getting rid of lag with pictureBox Pin
pcxboy12-Jun-05 0:31
pcxboy12-Jun-05 0:31 
GeneralRe: Getting rid of lag with pictureBox Pin
Robert Rohde12-Jun-05 1:02
Robert Rohde12-Jun-05 1:02 
GeneralImplementing Access Levels Pin
tinkis11-Jun-05 8:45
tinkis11-Jun-05 8:45 
GeneralApplication has generated an exception that could not be handled Pin
xeric10-Jun-05 18:25
xeric10-Jun-05 18:25 
GeneralRe: Application has generated an exception that could not be handled Pin
mav.northwind10-Jun-05 21:06
mav.northwind10-Jun-05 21:06 
GeneralRe: Application has generated an exception that could not be handled Pin
xeric11-Jun-05 2:49
xeric11-Jun-05 2:49 
Generala problem in mirrored listview Pin
AbuMosaab10-Jun-05 12:43
AbuMosaab10-Jun-05 12:43 
GeneralEvent handling on remoting classes Pin
Anonymous10-Jun-05 12:29
Anonymous10-Jun-05 12:29 
GeneralRe: Event handling on remoting classes Pin
S. Senthil Kumar10-Jun-05 22:00
S. Senthil Kumar10-Jun-05 22:00 
GeneralRe: Event handling on remoting classes Pin
Anonymous11-Jun-05 14:07
Anonymous11-Jun-05 14:07 
GeneralRe: Event handling on remoting classes Pin
Anonymous11-Jun-05 14:26
Anonymous11-Jun-05 14:26 
GeneralWrapper class for SqlConnection Pin
Hamlet_h10-Jun-05 4:00
Hamlet_h10-Jun-05 4:00 
GeneralRe: Wrapper class for SqlConnection Pin
Dave Kreskowiak10-Jun-05 4:17
mveDave Kreskowiak10-Jun-05 4:17 
GeneralRe: Wrapper class for SqlConnection Pin
Not Active10-Jun-05 9:31
mentorNot Active10-Jun-05 9:31 
GeneralCheck permissions Pin
cyonite10-Jun-05 2:55
cyonite10-Jun-05 2:55 
GeneralCustom Editor for TreeView Nodes!!!☺ Pin
sharaabi10-Jun-05 2:11
sharaabi10-Jun-05 2:11 
Generalshell extension (windows explorer ) Pin
Anonymous8-Jun-05 23:56
Anonymous8-Jun-05 23:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.