How to kept a graphic drawing in a picturebox on a tab control after switching to tab 2 and return to tab 1?

て烟熏妆下的殇ゞ 提交于 2019-12-02 03:23:39
user2352673

Its done, I just used a Bitmap to draw to it and the set the picturebox image with the bitmap.

The code I used is as follows:

Bitmap image = new Bitmap(pictureBox1.Width, pictureBox1.Height);
Graphics g = Graphics.FromImage(image);

// In between all the code required for extracting the data and do the draw.

pictureBox1.Image = image;

Thanks anyway to whoever saw my question and try to answer it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!