Hi
In below code i want initially Picture1 should be blank . I am using Vb6
Private Sub Section3_Format(ByVal pFormattingInfo As Object)
Set Picture1.FormattedPicture = LoadPicture(cimage1.Value)
End Sub
Thanks
Hi
In below code i want initially Picture1 should be blank . I am using Vb6
Private Sub Section3_Format(ByVal pFormattingInfo As Object)
Set Picture1.FormattedPicture = LoadPicture(cimage1.Value)
End Sub
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Daniel WrightPosted Apr 16, 2025, 10:44 AM
Based on the provided information, it seems like you're looking to ensure that Picture1 starts empty or blank before loading an image when using Visual Basic 6 (VB6). To achieve this, you can set Picture1 to a blank or empty state before loading the actual image.
One way to accomplish this is by setting the Picture property of Picture1 to a null or empty value before loading a new picture. Here's how you can modify your code snippet to achieve this:
By setting `Picture1.Picture = Nothing` before loading the new picture, you ensure that Picture1 is initially blank before displaying the new image from `cimage1.Value`.
This modification should help you achieve the desired behavior of having Picture1 start blank before loading a new image in your VB6 application. If you have any more questions or need further clarification, feel free to ask.