Hi
In below code i want initially Picture1 should be blank . I am using Vb6
VB.NET
Private Sub Section3_Format(ByVal pFormattingInfo As Object)
Set Picture1.FormattedPicture = LoadPicture(cimage1.Value)
End SubThanks
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 SubThanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Daniel WrightRank #2,947 · 489 reputationPosted Apr 16, 2025, 6:44 AM EDT
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:
Private Sub Section3_Format(ByVal pFormattingInfo As Object) ' Clear the existing picture before loading a new one Picture1.Picture = Nothing ' Load the new picture from cimage1.Value Set Picture1.FormattedPicture = LoadPicture(cimage1.Value) End SubBy 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.