Results 1 to 5 of 5

Thread: [RESOLVED] Background Image

  1. #1

    Thread Starter
    Member ukjock's Avatar
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    59

    Resolved [RESOLVED] Background Image

    I have a background image for my application, which is 843x564.

    Whenever I put the image on the form it slows down the redrawing of the form, if it has been minimized and then restored. If I click on a checkbox which then disables a group box then it seems to take a while to re-draw the group box to a disabled state.

    Does anyone have any hints or tips for using background images on a form?

    I am using vb.net (2003)

    Any help gratefully received.

    Kind regards

    Chris
    Last edited by ukjock; Apr 11th, 2006 at 09:00 AM. Reason: Forgot to Stipulate which vb.net version

  2. #2
    Hyperactive Member nothingofvalue's Avatar
    Join Date
    Jul 2005
    Location
    Arizona
    Posts
    489

    Re: Background Image

    That is an awfully large image. Depending on the image format, if you absolutely must use that image, try to convert the image to another format that is not as large, especially if you are using a BMP. Try a gif or a png instead. Either way I would guess most computers will see a bit of a delay in repainting an image that large.
    "Imagination is more important than knowledge..."

    Albert Einstein
    -----------------------------------------------
    If my reply helped you then you really were lost, but I still took the time to help, please rate it anyway

  3. #3

    Thread Starter
    Member ukjock's Avatar
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    59

    Re: Background Image

    It was a png, I converted to a jpg; the jpg being about 33Kb. The image was still slowing down the app

  4. #4
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: Background Image

    if you are using 2005 then make sure to set the BackgroundImageLayout property to something besides tile.
    VB Code:
    1. Me.BackgroundImageLayout = ImageLayout.None

  5. #5

    Thread Starter
    Member ukjock's Avatar
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    59

    Re: Background Image

    Yep, I have just removed the background image and it works quicker.

    Looks like i shall stick with the same old background.

    Kind Regards

    Chris

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