vb.net - Making BackgroundImage of PictureBox Nothing -


i'm trying make backgroundimage of picturebox nothing.

i've tried

backgroundimage3.backgroundimage = nothing backgroundimage3.update() ' didn't work without line of code 

and

dim n0 = image backgroundimage3.backgroundimage = n0 

with no success.

also, code if statement, if it'll little:

if (picturebox3.backgroundimage my.resources.theimageiwant) 

any suggestions?

in visual studio 2010, line works well:

backgroundimage3.backgroundimage = nothing    

after execution of code, background image dissappears; that's trying do?
i'm sure problem lies in context you've put backgroundimage change, can post full code. post complete procedure, in have placed code above.


Comments