I use WebBrowser-Control to view the contents of a folder.
Windows 10 displays โDisplay Errorโ after reordering the content when the selected item moves from bottom to top.
Let me reproduce:
- Run a clean winform or wpf Solution.
- drag the webbrowser control inside
add code to go to your user folder, for example:
public Form1() { InitializeComponent(); webBrowser1.Navigate(@"C:\tmp\yourfolder\"); }
launch the application, switch to Details-View, if necessary (using the right-click context menu) 
Sort by column name, select first record
Sort by column name to move the object to the end

- Sort by column name again to move the selected item up

You will see that the scroll bar, window and list are not in sync. The scroll bar has moved up, but the item has not moved to the first position in the list. Also, the item is displayed only after Mouse-Over. Also, by dragging the scroll bar a little, it does not heal this abnormal behavior.
Does anyone have any ideas how to overcome this? I was thinking about getting the shellfolderview to redraw by calling InvalidateRect or sending a WM_PAINT message to the connected SysListView32, but without success.
And yes, I want to show a list with details - View: -).
How to solve this?
source share