-
Apr 11th, 2006, 08:59 AM
#1
Thread Starter
Member
[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
-
Apr 11th, 2006, 09:03 AM
#2
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
-
Apr 11th, 2006, 09:10 AM
#3
Thread Starter
Member
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
-
Apr 11th, 2006, 10:25 AM
#4
Re: Background Image
if you are using 2005 then make sure to set the BackgroundImageLayout property to something besides tile.
VB Code:
Me.BackgroundImageLayout = ImageLayout.None
-
Apr 11th, 2006, 10:25 AM
#5
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|