I just put the picture in the form backgroundImage.
You sure my code slows down the form??
Ans if it's the code what can I do to speed it up?
Any suggestions?
(I got lot's of code in my form (about 4000 lines), a lot of modules and a few classes)
We cannot help you mery much because we don't know what your code does
It would be cool if you could Zip your project and post it up here. Assuming it's not a trade secret or anything :mike:
Please don't feel insulted by this but:
You are not loading the image from a file with code in the form's paint event or anything like that? That would cause devastating performance issues. I'm sure you wouldn't have done that though.
I can't show the code,
because it needs a database right in the beginning of the form
on different locations and it's confidential.
But I asure you, I got nothing weird in the code.
I got a label on the form wich when I click on it the
mousedown of it changes the me.backgroundImage
by loading the file from a directory in the application location.
Nothing special realy.
When I click on it and the form refreshes to the 4 kb jpg
the time to load it is about 0.3 seconds.
but when I click to refresh the form into a 13 kb jpg the form takes about 1 second to load the image.
I looks as if the procedures in the form react in the same slow proportion when loading the image into the form...
look at the attachment:
You see when I klik to the blue screen the form refreshes faster than
when I load a larger image...
If this is normal never mind, but if you know a solution to it, than be my guest!