What can cause a transparent scroll error in a ListView?

I have a ListView created in what I consider to be a completely standard way in a C # .Net 3.5 project running on a laptop using XP, which pretty much stays on all the time (although I reload it about once a month or if I install any new software).

Arriving in the morning, I sometimes notice that this greets me when I unlock my car:

Scroll bars displaying the background through http://www.premierekitchens.co.uk/storage/DodgyScrollbars.png

As you can see, the scroll bars show my background through them. They became transparent. They still "work" because the mouse can interact with them, but they are not updated at all.

And the strangest of all, all child windows (which are created and destroyed in the usual C # way) also have this problem. And not only in ListViews. Standard text fields also have this problem.

I searched, but I can’t find anything about it.

Does anyone have any ideas on what) what causes this? and b) how can I fix this?

+4
source share
1 answer

Are you automatically updating the application (updating) the list? I have seen management problems such as this because of the large number of GDI objects caused by the misuse of certain types of objects. Check the Task Manager and select View β†’ Column Selection to specify USER objects and GDI objects and see what happens when the application continues.

At any time when I fixed strange management problems by updating the drivers of a simple graphics card, it might be worth checking that you have the latest driver installed.

I assumed that this would take some time, and it is difficult to do. In fact, I just remembered that I had a very strange problem when you get GUI errors if you lock the desktop and then unlock. Try to see if you can replicate the problem on demand.

+2
source

Source: https://habr.com/ru/post/1344060/


All Articles