I use the WebBrowser-Control to view the Content of a folder.
On windows 10 there is a Display-Bug, after reordering the content, when the selected Item moves from bottom to top.
Let's reproduce:
add Code to navigate to your custom Folder e.g:
public Form1()
{
InitializeComponent();
webBrowser1.Navigate(@"C:\tmp\yourfolder\");
}
start application, switch to Details-View if needed (with right click - context-menu)
Sort by Name-Column, Select first Entry
Sort by Name-Column to move item to end
You'll see, scrollbar, window and list are not in sync. The Scrollbar moved up, but the Item didn't move to the first position in the list. Also the item is only visible after Mouse-Over. Also dragging the scroll-bar a little, doesn't heal this misbehavior.
Does anybody has an idea how to overcome this? I was thinking of forcing the shellfolderview to redraw by calling InvalidateRect or sending a WM_PAINT Message to the hooked SysListView32, but with no success.
And yes, I want to show the list with the details-View :-).
How to solve this?
This Windows-Bug is present at least in Windows-10-Version 1703 15063.674 and 15063.850. (Creators Update)
Other Issues with this Version are reported here: https://answers.microsoft.com/en-us/windows/forum/windows_10-security/important-syslistview32-bug-with-multiple-items/9e6198f7-a38a-4614-bc89-4781a9bde748?tm=1509985739913&auth=1
In Fall Creators Update the Bug is gone. I tested with 1709 Build 16299.125
@Gaurange Dave could not reproduce the bug with Anniversary Update. He tested with Build 14393.1944.
So just update Windows 10. Thanks everybody for help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With