tags:

views:

30

answers:

0

I have a button component that draws to a bitmap using LockBits. At the end of the onclick event handler i use the code.
pictureBox1->Image = bmp;
However in the MSDN help it says to use the pictureBox OnPaint event handler.
The program runs perfectly, and i get smoke/haze/dust effects for free. I would really like to use this method. Is the method i am using safe?