vb.net - IF statement in background image in a Picture box -


i have 2 images in project's resources , want make if statement see if picture box has one, if happens, want change image. have not work:

 if  pic1.backgroundimage global.images.my.resources.ima1  pic1.backgroundimage = global.images.my.resources.ima2 end if 

am right? or else can that?

if  pic1.backgroundimage = global.images.my.resources.ima1  pic1.backgroundimage = global.images.my.resources.ima2 end if 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -