Pic1.Picture =没有什么 那将清除图像框,这样你就可以使用这样的东西......我猜... Pic1.Picture = LoadPicture(C:\ MyPictures \ MyPic.jpg) 我不确定你的意思,所以我想我会给一个还有一点暗示:D $ 亲切的问候 Devon。 The Image box is being populated via an If & Then statement, but I need to clear it before the condition changes.Are there any ''one-liners'' out there? 解决方案 Greetings, Tomservo!You may be closer than you think. Since you if statement produces the image, why no set visibility to true/false, whereby replacing one image with another.Example:If this and that Then MyPic0.Visible = True MyPic1.Visible = FalseElseIf this and that Then MyPic0.Visible = False MyPic1.Visible = TrueElseIf this... My... My...Else MsgBox "Darn!"End IfIf this does not do it for you, post your if statement so we can have a look.Have fun :-)D?k?llGreetings, Tomservo!You may be closer than you think. Since you if statement produces the image, why no set visibility to true/false, whereby replacing one image with another.Example:If this and that Then MyPic0.Visible = True MyPic1.Visible = FalseElseIf this and that Then MyPic0.Visible = False MyPic1.Visible = TrueElseIf this... My... My...Else MsgBox "Darn!"End IfIf this does not do it for you, post your if statement so we can have a look.Have fun :-)D?k?llThanks D?k?ll! I''ll get on it now.The Image box is being populated via an If & Then statement, but I need to clear it before the condition changes.Are there any ''one-liners'' out there?Also a quick hint, if your actually trying to clear the picture and not just make it non-visible, then use this code,Pic1.Picture = NothingThat will clear the image box so you can use something like this i guess...Pic1.Picture = LoadPicture("C:\MyPictures\MyPic.jpg")Im not to sure which one you meant so i thought i would just give a little hint aswell :DKind RegardsDevon. 这篇关于如何在运行时清除图像(新手)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-06 22:03