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
Printable View
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
This link should answer your questions
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
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)
The line should be drawn from the lower left, up toward the right, one fifth of the way, vertically and horizontally.Code:Option Explicit
Private Sub Form_Load()
Picture1.AutoRedraw = True
Picture1.Scale (0, 500)-(500, 0)
Picture1.Line (0, 0)-(100, 100)
End Sub
Thanks a lot.
That's great.