Results 1 to 5 of 5

Thread: resizing picture

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    332

    resizing picture

    Is there anyway of coding the resizing of an imported picture by the user in VB according to my picturebox size? (the program code will do it, so it becomes automated, the user doesn't have to resize it manually)???

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    you could put an image control inside of the picbox
    set the stretch property to true and set the image controls borders according to the picbox.
    Sanity is a full time job

    Puh das war harter Stoff!

  3. #3
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    well another way is to load the picture into some DC and than stretchblt it onto the picbox. (If you do not want another control)
    Sanity is a full time job

    Puh das war harter Stoff!

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    332
    how do i enable a scrollbar for a form?

    also, watever u told me above worked! thank you, i had to use an imagebox instead of a picture box.

    The thing is that it only works for imageboxes in a form.
    Any suggestions for how I can apply the same in the MDI parent?

  5. #5
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    you should be able to apply a picture box to the mdi parent. Just use the picture box as container for you image control!
    Sanity is a full time job

    Puh das war harter Stoff!

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