Clearing a data binded image
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi! I have a user control with a PictureBox control. This picturebox's image is data binded to a binary field in the database. When I set the image, it works fine: image is saved in the DB and everythings fine. Now, when I want to CLEAR the image, I do the following: this.picImage.Image.Dispose(); this.picImage.Image = null; and...nothing happens. The next time I open the form, the image is still there. The binding is correct because if I change the bitmap, it is saved properly. It seems to be ignoring the null value Im trying to persist in the database. I'm using Visual Studio 2005 and SQL Server 2005. Help! Thanks in advance :)