Results 1 to 5 of 5

Thread: [RESOLVED] PictureBox scale on Left bottom?

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2014
    Posts
    54

    Resolved [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

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: PictureBox scale on Left bottom?

    This link should answer your questions
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2014
    Posts
    54

    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

  4. #4
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    6,582

    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.

  5. #5

    Thread Starter
    Member
    Join Date
    Jun 2014
    Posts
    54

    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
  •  



Click Here to Expand Forum to Full Width