What could cause a transparent scrollbar bug in a ListView?
I have a ListView, set up in what I believe is a completely standard way in a C# .Net 3.5 project, running on a laptop using XP, which pretty much stays on the whole time (although I reboot it about once a month or if I install any new software).
On coming in in the morning, I sometimes notice this greeting me when I unlock my machine:
Scrollbars showing background through http://www.premierekitchens.co.uk/storage/DodgyScrollbars.png
As you can see, the scrollbars are showing my background through them. They have turned transparent. They still "work", in that the mouse can interact with them, but they do not update at all.
And strangest of all, any child windows (which get created and destroyed in the usual c# way) also have this problem. And not just on ListViews. Standard text boxes also have this issue.
开发者_JAVA百科I've searched, but I cannot find anything about this anywhere.
Does anyone have any ideas on a) what's causing it? and b) how I can fix it?
Does you application update automatically (refresh) the list? I have seen control issues like this due to a high GDI object count caused by not correctly disposing some types of objects. Check Task Manager and go View -> Select Columns to specify USER objects and GDI objects and see if anything creeps up as the application goes on.
Any time I have also fixed strange control issues with a simple graphics card driver update, so might be worth checking you have the latest driver installed.
I supposed as this takes a while to occur it is a difficult one to bug. Actually, I just remembered I had a very strange issue a while back where you would get GUI bugs if you lock the desktop then unlock. Give that a try to see if you can replicate the issue on demand
精彩评论