VBAndCs / sVB-Small-Visual-Basic

Small Visual Basic (sVB) is an educational programming language, created by Eng. Mohammad Hamdy as an evolved version of Microsoft Small Basic (SB). It is meant to be easier and more powerful at the same time, to introduce programming basics to kids and beginners of any age, provided that they can use the English keyboard on the Windows OS.
Other
222 stars 16 forks source link

Is there any way to remove image of label? #46

Closed dynamicboy closed 1 month ago

dynamicboy commented 6 months ago

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

VBAndCs commented 6 months ago

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: @.***>

dynamicboy commented 6 months ago

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