VB.NET - Adjusting ListView Columns When Font Size Changes

Asked By David Simmons on 08-Mar-11 10:25 AM
I am having a problem with my windows apps displaying when the user changes the font size in Windows 7.  This has always been a problem particulary when combined with the ability to change screen resolution but I usually mange to find a common ground.  I can get the screen resolution and make adjustments based on that,  but I don't know how to determine if they have increased the font size and what to do about it if they have.  The specific problem I am having right now is the width of the columns in a list view.  If the font size is increased the width decreases and data that they are used to seeing is not all viewable unless they resize the columns.  Any thoughts on this are appreciated.  Thanks.
Tom Wilson replied to David Simmons on 08-Mar-11 03:10 PM


ListView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent)

Tom Wilson replied to Tom Wilson on 08-Mar-11 03:12 PM
I tried to post a comment, but it was rejected because of inappropriate content.  I can not see the inappropriate content/

Execute the following method after the ListView is filled with data:

David Simmons replied to Tom Wilson on 08-Mar-11 04:06 PM
Thanks!  That worked.