-
Mar 27th, 2017, 05:38 AM
#1
Thread Starter
New Member
How to resolve the run-time error '380' Invalid property value?
When I want to set the value as below:
picDrawing.ScaleWidth = OverallWidth
where OverallWidth > 40000 then I get the run-time error '380'.
Any idea how I could solve this problem? Thanks.
-
Mar 27th, 2017, 06:41 AM
#2
Re: How to resolve the run-time error '380' Invalid property value?
Well, 40000 is a lot less than the maximum (245685) of a picturebox. What is your scalemode set to?
-
Mar 27th, 2017, 07:41 AM
#3
Thread Starter
New Member
Re: How to resolve the run-time error '380' Invalid property value?
Thanks for coming back. There is no scalemode property in my vb6?
-
Mar 27th, 2017, 08:06 AM
#4
Re: How to resolve the run-time error '380' Invalid property value?
Sam refers to the ScaleMode property of the PictureBox
-
Mar 27th, 2017, 08:12 AM
#5
Thread Starter
New Member
Re: How to resolve the run-time error '380' Invalid property value?
It's not a pictureBox but a VSDraw and there is no property in VSDraw for scalemode.
-
Mar 27th, 2017, 09:01 AM
#6
Re: How to resolve the run-time error '380' Invalid property value?
You should have mentioned that before.
If you check the documentation of the vsDraw control (by ComponentOne) then you will find that the range for the .ScaleWidth property is -32,768 to 32,767.
Note: All scaling properties must be in the range from -32,768 to 32,767. This is a limitation imposed by Windows metafiles.
-
Mar 28th, 2017, 03:02 AM
#7
Thread Starter
New Member
Re: How to resolve the run-time error '380' Invalid property value?
Thanks a lot. Sorry for not being clear. Is there a way around it? My drawing moves outside the VSDraw canvas. I mean, is there a way to add scrollbars when the drawings goes outside vsDraw?
-
Mar 28th, 2017, 03:25 AM
#8
Re: How to resolve the run-time error '380' Invalid property value?
I don't know. I've never used the control myself.
-
Mar 28th, 2017, 05:49 AM
#9
Re: How to resolve the run-time error '380' Invalid property value?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|