Hi
Error - Member or data member not found in Vb6 - Picture1.SizeMode = vbPicAutoSize
Picture1.AutoRedraw = True
Picture1.Picture = LoadPicture(App.Path & "\O_" & tno & ".jpg")
Picture1.SizeMode = vbPicAutoSize
Thanks
Hi
Error - Member or data member not found in Vb6 - Picture1.SizeMode = vbPicAutoSize
Picture1.AutoRedraw = True
Picture1.Picture = LoadPicture(App.Path & "\O_" & tno & ".jpg")
Picture1.SizeMode = vbPicAutoSize
Thanks
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
Sophia CarterRank #4,018 · 371 reputationPosted Mar 20, 2025, 12:06 PM EDT
It appears that you are encountering an error related to a member or data member not found in VB6 when trying to set the SizeMode property of a Picture control (Picture1) to vbPicAutoSize.
In VB6, the SizeMode property is typically used to control how an image is displayed within an Image control. However, the error message you provided suggests that the SizeMode property might not be recognized or available for the Picture control in VB6.
One possible solution to address this issue is to manually resize the Picture control based on the dimensions of the loaded image. You can achieve this by setting the width and height of the Picture control to match the width and height of the image loaded using the LoadPicture method.
Here is an example code snippet that demonstrates how you can dynamically adjust the size of the Picture control based on the dimensions of the loaded image:
Picture1.AutoRedraw = True Picture1.Picture = LoadPicture(App.Path & "\O_" & tno & ".jpg") ' Set the width and height of the Picture control to match the image dimensions Picture1.Width = Picture1.Picture.Width Picture1.Height = Picture1.Picture.HeightBy setting the width and height of the Picture control to match the dimensions of the loaded image, you can achieve a similar effect to vbPicAutoSize in VB6.
I hope this explanation helps you troubleshoot the Member or data member not found error in VB6. If you have any further questions or need additional assistance, feel free to ask!