S
Simon [2610]
Hi,
Im building an application to use instead of the explorer thumbnail
view.
Lets say i have a folder with 2500 images, and at any given time i can
show 25 images at thumbnail size on my screen. I have a control
(PictureControl, PC) on which i have a picturebox to display the
individual images, and a label for the name.
Ive loaded all theese 2500 controls onto a FlowLayoutPanel.
Now i want an event to fire when i scroll and a PC becomes visible, so
that i can load the image then, and when it leaves the visible area i
can unload the image. so that i use a minimal amount of memory.
I thought the visiblechanged event was what i needed, but they are
always visible :/
I am building this because im getting tired of waiting for windows to
finish producing the thumbnails when i view a folder, and have found
no way to force windows to load all the thumbnails without me
scrolling down and looking at them (and even then it can seem like its
stalling).
Now, i have thought of an alternate way, if i can get the percentage
position (or something like that) of the scroll bar, i can calculate
what is and what isnt visible... but i would rather the application to
tell my controls which are visible to the user and which arent.
anyone got a solution for that one? ive searched the web without any
luck, but perhaps im searching for the wrong things?
Regards
Simon.
Im building an application to use instead of the explorer thumbnail
view.
Lets say i have a folder with 2500 images, and at any given time i can
show 25 images at thumbnail size on my screen. I have a control
(PictureControl, PC) on which i have a picturebox to display the
individual images, and a label for the name.
Ive loaded all theese 2500 controls onto a FlowLayoutPanel.
Now i want an event to fire when i scroll and a PC becomes visible, so
that i can load the image then, and when it leaves the visible area i
can unload the image. so that i use a minimal amount of memory.
I thought the visiblechanged event was what i needed, but they are
always visible :/
I am building this because im getting tired of waiting for windows to
finish producing the thumbnails when i view a folder, and have found
no way to force windows to load all the thumbnails without me
scrolling down and looking at them (and even then it can seem like its
stalling).
Now, i have thought of an alternate way, if i can get the percentage
position (or something like that) of the scroll bar, i can calculate
what is and what isnt visible... but i would rather the application to
tell my controls which are visible to the user and which arent.
anyone got a solution for that one? ive searched the web without any
luck, but perhaps im searching for the wrong things?
Regards
Simon.