Is there any way to remove the blank space in the last column of listview's columnheader in winform?

60 views Asked by At

If I maximize my window and set it to dark mode, the white space on the last line will stand out and I want to remove it

Already tried to redraw columnheader

ListView.DrawColumnHeader += new DrawListViewColumnHeaderEventHandler(ListView_DrawColumnHeader_Dark);

I want to completely delete or hide the part selected by the red box here are the pic

1

There are 1 answers

1
noobDev On

I haven't found a better workaround until now, and now my solution is to limit the maximum and minimum size of the window and not allow adjustments, so that it doesn't show extra white space