Nov 2, 2018 08:51 AM
(This post was last modified: Nov 2, 2018 08:52 AM by FarosMoloko.)
Quick question.
Whenever I loop through a bunch of images, and add them to my listview control from a thread with:
It completely freezes the UI for 3-5 seconds. This is because invoking code means running it on the UI thread (I think).
So how would I get around this and add them without freezing the UI thread, and keeping it responsive?
Thanks 🤝
Whenever I loop through a bunch of images, and add them to my listview control from a thread with:
PHP Code
<?php
Invoke(new Action() => { lvPics.Add()... };
It completely freezes the UI for 3-5 seconds. This is because invoking code means running it on the UI thread (I think).
So how would I get around this and add them without freezing the UI thread, and keeping it responsive?
Thanks 🤝


