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.
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.
Sophia CarterPosted Mar 20, 2025, 4:06 PM
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:
By 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!