Progressbar not showing up

Hello Patrick

A simple addition to the suggestion that Sam R proposed as a
last resort: using App.DoEvents.

In some situations this is still possible, especially if your
app does not process other events in general.

I tried this for a long running disk-searching app, and with a call
to App.DoEvents(20), a small value, this worked and allowed
updating of the Progressbar in my app without problems.

You could simply try it for a small project and see if it is
usable and safe in your case.

The pitfalls that might occur are similar to the usage of
(Win)ProcessMessages in Delphi (and C++ Builder ?) and
the like.

A nice description of the kind of situations in which problems
might occur are described in the following link, assuming that
you are familiar with Pascal code:

https://www.thoughtco.com/dark-side-of-application-processmessages-1058203

Please, avoid App.DoEvents because it may (will?) make your UI App instable.
DoEvents was/is meant for ConsoleApps only.

man, i banged on this quite a while trying to redo my 2 methods within the thread but it’s incredibly complicated. there are too many comparisons I need to do between the 2 listboxes I’m using. One has 2 items and the other has 4 per row. App.DoEvents worked pretty well actually. As far as being “unstable”, what do you mean by that? Cause a crash? I’ll read up on this as well.

from what I read, a simple caution might be to just disable the buttons temporarily while the method runs.