Joined: 28 Jun 2005
|Posted: Mon Mar 16, 2009 5:36 pm Post subject: ListView and Windows Vista...
I have a script that works great in Windows XP and in Vista, except for a small listview-problem...
|$ListViewColumn0 = $ListView.Columns.Add($System.ColumnHeader(Readvalue($reg_rubrik,"Reg_Rubr1"),240,$System.HorizontalAlignment_Center))
$ListViewColumn1 = $ListView.Columns.Add($System.ColumnHeader(Readvalue($reg_rubrik,"ID"),2,$System.HorizontalAlignment_Center))
These lines work in XP and the result looks like this:
The same lines on Vista produces this:
No matter what I try, I can't set the columnwidth
I have tried the "classic view" in Vista, and it doesen't help.
I have also tried to set the width to 50, just to see if something would change, but it is "stuck" to that setting.