Re: [powershell] Formatting a ListBox

2014-10-01 Thread Michael Leone
On Wed, Oct 1, 2014 at 9:10 AM, Walsh, Antony wrote: > Out-Gridview can be used to select items if you are using powershell v3 Really! I always thought it was an display only cmdlet. Time to go read the "-Detailed" help on this ... Learn something new every day ... Using PS v4, BTW ... ==

RE: [powershell] Formatting a ListBox

2014-10-01 Thread Walsh, Antony
] On Behalf Of Michael Leone Sent: 01 October 2014 12:49 To: powershell@lists.myitforum.com Subject: Re: [powershell] Formatting a ListBox On Tue, Sep 30, 2014 at 8:35 PM, Keith Garner (Hotmail) wrote: Or even Out-GridView. J Because later on I do things with the entry selected, and I

Re: [powershell] Formatting a ListBox

2014-10-01 Thread Michael Leone
On Tue, Sep 30, 2014 at 6:17 PM, Magnus Tveten wrote: > > What if you did not use ListBOX but used ListView ? > > Listview is capable of having Columns ($objListView.View = 1 #can not > remember what the different views are..) and with some more code you can > enable Column sorting... > I pas

Re: [powershell] Formatting a ListBox

2014-10-01 Thread Michael Leone
On Tue, Sep 30, 2014 at 8:35 PM, Keith Garner (Hotmail) < keith.gar...@hotmail.com> wrote: > Or even Out-GridView. J > Because later on I do things with the entry selected, and I won't get that with Out-GridView ... Did you know you can also post

RE: [powershell] Formatting a ListBox

2014-09-30 Thread Keith Garner (Hotmail)
Or even Out-GridView. :) From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Magnus Tveten Sent: Tuesday, September 30, 2014 3:17 PM To: powershell@lists.myitforum.com Subject: RE: [powershell] Formatting a ListBox What if you did not use

RE: [powershell] Formatting a ListBox

2014-09-30 Thread Magnus Tveten
What if you did not use ListBOX but used ListView ? Listview is capable of having Columns ($objListView.View = 1 #can not remember what the different views are..) and with some more code you can enable Column sorting... $FormWidth= 300 # 300 $FormHeight = 500 # 320 $objF

RE: [powershell] Formatting a ListBox

2014-09-30 Thread Kelley, Matthew
September 30, 2014 5:10 PM To: powershell@lists.myitforum.com Cc: ntsys...@lists.myitforum.com Subject: RE: [powershell] Formatting a ListBox When you fill your listbox, I would use the padright with spaces. Subtract the length of the item you are putting into each spot from a constant number you