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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -