Results 1 to 21 of 21

Thread: strange display problem, plz help!

  1. #1

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113

    strange display problem, plz help!

    hi, i have made a program and have put a picture box on the form. I resize the form to fit around the picture (with a bitmap inside it already). But when i distribute the program, on win2000 the form isn't resized around the picture box like i did it. I tried to do it in the form_load bit and resize the form to fit around the picture box, but it still happens.
    It works perfectly fine on winNT and win98 but for some reason win2000 it no work.

    Any ideas?

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Have u tested this on more than one win2k pc ?
    -= a peet post =-

  3. #3

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113
    yup but still the same prob...

  4. #4
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    I just tried this on a 2K pc and it seemed to work fine.

    How are you resizing the form and when, i.e. in what event?
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  5. #5
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    Sorry, I see it's in the load event. RTFP!

    If you are reading the size from the picture rather than hard-coding it, I wonder if your code is executing before the picture has had time to load? Have you tried putting the same code on a command button as a test, and seeing if it works after the form is fully loaded?
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  6. #6
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    could u post the code that does not work as indended... maybe we (win2k users) can find out.
    -= a peet post =-

  7. #7

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113
    sorry i have been away
    ...

    hmmm that could be true.. maybe the picture doesnt load before the resizing code... however.. i have hard coded it in as well (i mean just resize it under the IDE and complied it) and the same prob occurs....



    the code for resizing

    Me.Width = Picture1.Width + 45
    Me.Height = Picture1.Height + 335

  8. #8

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113
    hmm.. any1 know?

  9. #9
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    you load a picture into picture box, then the picture box is automatically resised ?
    then u do the resising of the form according to the pic size ?

    have I understood correctly?
    -= a peet post =-

  10. #10

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113
    yes... thats correct!

    i have included the link to the program as well.. all win2k users.. plz test and see how it is (if it resizes properly)

    www.geocities.com/mrkylehuynh/program.zip

  11. #11
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    it states "This page is not available. " ?
    -= a peet post =-

  12. #12

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113
    are u sure
    http://www.geocities.com/mrkylehuynh
    is the webpage

    http://www.geocities.com/mrkylehuynh/program.zip
    is the direct link


    just tested it.. works fine

  13. #13
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    sorry no luck

    We're sorry, but this page is currently unavailable for viewing.
    If this site belongs to you, please read this help page for more information and assistance
    For general questions see our main help area, or search for other member pages.
    -= a peet post =-

  14. #14

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113
    have u got email .. i can send to you

  15. #15
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    -= a peet post =-

  16. #16

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113
    its on its way

  17. #17
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629

    Thumbs up

    -= a peet post =-

  18. #18
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    result :




    is that what it should look like?
    -= a peet post =-

  19. #19

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113
    yup.. exactly...

    you running win2k yeah


    if so then.. hmm must be my friends system....

    thanks for all the help =)

  20. #20
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    yes 2k,

    ask u'r friend to check if he has large fonts sat in the display settings... it tends to f.... things up this way.
    -= a peet post =-

  21. #21

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113
    hmm... good point

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