pictureBox.image default (no picture)
-
Hi, I setting pictureBox.image = Image.FromFile("eweew.bmp"); This works file, but at times I want no picture to be displayed. How do I set pictureBox.image to no value or default? Thanks in advance. Rapier
Try setting it to null. Edited: Don't forget to dispose the image before clearing it.
#region signature my articles #endregion
modified on Friday, January 04, 2008 7:55:36 AM
-
Try setting it to null. Edited: Don't forget to dispose the image before clearing it.
#region signature my articles #endregion
modified on Friday, January 04, 2008 7:55:36 AM
Giorgi Dalakishvili wrote:
Try setting it to null
will it throw an exception?
Luc Pattyn [Forum Guidelines] [My Articles]
Happy 2008!
-
Giorgi Dalakishvili wrote:
Try setting it to null
will it throw an exception?
Luc Pattyn [Forum Guidelines] [My Articles]
Happy 2008!
No, It won't.
#region signature my articles #endregion
-
Try setting it to null. Edited: Don't forget to dispose the image before clearing it.
#region signature my articles #endregion
modified on Friday, January 04, 2008 7:55:36 AM
-
Great! Make sure you dispose the image if you don't want to have memory leaks.
#region signature my articles #endregion