-
Oct 25th, 2015, 02:18 PM
#1
Thread Starter
Member
[RESOLVED] PictureBox scale on Left bottom?
Hi.
I'm trying to write a program that draw a graph by picture box but I cant put the scale on left bottom.
How can I do that please help me I really confused I tried every thing but.....
Please help I need to finish this program soon.
Thanks
-
Oct 25th, 2015, 02:27 PM
#2
Re: PictureBox scale on Left bottom?
This link should answer your questions
-
Oct 25th, 2015, 02:41 PM
#3
Thread Starter
Member
Re: PictureBox scale on Left bottom?
Thanks for replying but I didn't find my answer.
Is that possible for you to give me a code that I can use it.
Thanks a lot
-
Oct 25th, 2015, 03:39 PM
#4
Re: PictureBox scale on Left bottom?
You need to set the ScaleTop to what you want your Top Y coordinate to be, and set your ScaleHeight to Negative of Top, assuming you want 0,0 at the bottom left.
That way, your maximum Y value will be at the top and go down to 0 at the bottom.
You could also use the Scale method. Just specify your desired top Y coordinate in the (Upper,Left) and the desired bottom Y coordinate in the (lower,right)
Code:
Option Explicit
Private Sub Form_Load()
Picture1.AutoRedraw = True
Picture1.Scale (0, 500)-(500, 0)
Picture1.Line (0, 0)-(100, 100)
End Sub
The line should be drawn from the lower left, up toward the right, one fifth of the way, vertically and horizontally.
Last edited by passel; Oct 25th, 2015 at 03:53 PM.
-
Oct 25th, 2015, 03:57 PM
#5
Thread Starter
Member
Re: PictureBox scale on Left bottom?
Thanks a lot.
That's great.
Tags for this Thread
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
|