Results 1 to 8 of 8

Thread: [RESOLVED] Picture autosize not working. (Due to other functions on form)

  1. #1

    Thread Starter
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    Resolved [RESOLVED] Picture autosize not working. (Due to other functions on form)

    Hello,

    Can someone please tell me why the attached program's auto size picture box does not work?

    I just need to know what code is doing it.

    Thank you!
    Stilekid007
    Quote Originally Posted by stilekid007
    I RATE ALL HELPFULL POSTS!

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Picture autosize not working. (Due to other functions on form)

    The attachment seems to be missing


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    Re: Picture autosize not working. (Due to other functions on form)

    HAHA! Sorry about that! My bad!
    Attached Files Attached Files
    Quote Originally Posted by stilekid007
    I RATE ALL HELPFULL POSTS!

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Picture autosize not working. (Due to other functions on form)

    Also moved from the codebank

    What doesn't work exactly? It seems to work as it should: load the image and fix the scrollbars depending on the height and width of the image if it's bigger... Could you explain the problem a bit more?

    Thanks


    Has someone helped you? Then you can Rate their helpful post.

  5. #5

    Thread Starter
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    Re: Picture autosize not working. (Due to other functions on form)

    Well see I want the scroll bars only if the picture is bigger than the form. So it would auto size and then if the picture is bigger then the form (Maximized) then it will put the scroll bars on.

    I can figure all the code out for that now, but what I need help with is getting the picture box that is in that program to autosize then I can take it from there.

    So all I need is you to get it to autosize the same size as the pic that is loaded.

    Thanks man!
    Stilekid007
    Quote Originally Posted by stilekid007
    I RATE ALL HELPFULL POSTS!

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Picture autosize not working. (Due to other functions on form)

    The problem is that in the OnImageLoad sub you compare the height/width of the picShowImage and picContainer pictureboxes... The size of picContainer doesn't change though. Since picShowImage is where the image gets loaded, after it's loaded and resized, you should set the size of picContainer to the same as picShowImage and then make picContainer smaller is it's bigger than the form. Make sense?


    Has someone helped you? Then you can Rate their helpful post.

  7. #7

    Thread Starter
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    Re: Picture autosize not working. (Due to other functions on form)

    Ahh yes I see. I think that will work. I will let you know if I run into something with it.

    Thank you and have a great day!
    Stilekid007
    Quote Originally Posted by stilekid007
    I RATE ALL HELPFULL POSTS!

  8. #8
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: [RESOLVED] Picture autosize not working. (Due to other functions on form)

    You're welcome Just post back if you run into any problems


    Has someone helped you? Then you can Rate their helpful post.

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