sVB-Small-Visual-Basic icon indicating copy to clipboard operation
sVB-Small-Visual-Basic copied to clipboard

Is there any way to remove image of label?

Open dynamicboy opened this issue 1 year ago • 2 comments

Version: 2.8.8.1 Details: Couldn't find a way to remove image of label. Step1: Drag one label, two buttons onto the form. Step2: Input code as below:

'------------------------------------------------
Sub Button1_OnClick()
   Label1.Image = "D:\1.jpg"
EndSub

'------------------------------------------------
Sub Button2_OnClick()
   Label1.Image = ""
   
EndSub

Step3: Run the form Result:Button2 cann't remove image of the label. The empty string should cancel the image.

Screenshot: 2024-01-08_195425

dynamicboy avatar Jan 08 '24 11:01 dynamicboy

Yes. Set its text. Label1.Text=""

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: dynamicboy @.> Sent: Monday, January 8, 2024 1:56:53 PM To: VBAndCs/sVB-Small-Visual-Basic @.> Cc: Subscribed @.***> Subject: [VBAndCs/sVB-Small-Visual-Basic] Is there any way to remove image of label? (Issue #46)

Version: 2.8.8.1 Details: Couldn't find a way to remove image of label. Step1: Drag one label, two buttons onto the form. Step2: Input code as below:

'------------------------------------------------ Sub Button1_OnClick() Label1.Image = "D:\1.jpg" EndSub

'------------------------------------------------ Sub Button2_OnClick() Label1.Image = ""

EndSub

Step3: Run the form Result:Button2 cann't remove image of the label. The empty string should cancel the image.

Screenshot: 2024-01-08_195425.png (view on web)https://github.com/VBAndCs/sVB-Small-Visual-Basic/assets/7421525/120c20ed-17a4-49e8-a6b4-f4a743d48b2e

— Reply to this email directly, view it on GitHubhttps://github.com/VBAndCs/sVB-Small-Visual-Basic/issues/46, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALQ5MVTMJPYDXVY37RLYWELYNPNILAVCNFSM6AAAAABBRKP7KSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3TAMZQGEYTSNY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

VBAndCs avatar Jan 08 '24 12:01 VBAndCs

@VBAndCs Got it, it's working. Thanks.

dynamicboy avatar Jan 08 '24 12:01 dynamicboy