Search found 12093 matches

by jvierra
Thu Apr 19, 2018 9:10 am
Forum: PowerShell GUIs
Topic: Adding text to a listbox
Replies: 8
Views: 212

Re: Adding text to a listbox

Hello nai0248 Without your files it would be very difficult to understand what the issue is. At a quick glance it appears that your XML extraction is incorrect. The selectin methods used will return nodes and not text and this cannot be displayed in a ListBox. Create a simple form and just load the ...
by jvierra
Wed Apr 18, 2018 2:30 pm
Forum: PowerShell GUIs
Topic: Management Groups in Listview
Replies: 3
Views: 151

Re: Management Groups in Listview

We can answer specific questions which I have as best I can given the request. It is beyond the scope of this and most forums to help you design a solution. I recommend starting over and simplifying the form. Once you have become familiar with how t implement code in a form using control events and ...
by jvierra
Wed Apr 18, 2018 12:28 pm
Forum: Windows PowerShell
Topic: Mail Forward Tool
Replies: 3
Views: 135

Re: Mail Forward Tool

THe following code cannot work as arguments must be passed and not incuded: Invoke-Command -Session O365Session -ScriptBlock { Set-O365Mailbox -Identity $onpremBox.Text -ForwardingAddress $o365Box.Text -DeliverToMailboxAndForward $true } -ErrorAction Stop Invoke-Command -Session O365Session -ScriptB...
by jvierra
Wed Apr 18, 2018 12:25 pm
Forum: Windows PowerShell
Topic: Mail Forward Tool
Replies: 3
Views: 135

Re: Mail Forward Tool

You would be better off doing it like this: $formMailForwarding_Load = { Get-PSSession | Remove-PSSession $UserCredential = Get-Credential $localSession = New-PSSession -Name LocalSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://mail.server.local/PowerShell/ -Authentication Kerber...
by jvierra
Wed Apr 18, 2018 10:34 am
Forum: PowerShell GUIs
Topic: Adding TabControl to a GUI
Replies: 5
Views: 376

Re: Adding TabControl to a GUI

You have to cut and paste the controls onto the new tab or the tab control will just sit on top of the existing controls.
by jvierra
Tue Apr 17, 2018 8:55 pm
Forum: PowerShell GUIs
Topic: ListView subitems not showing in Tile view
Replies: 10
Views: 209

Re: ListView subitems not showing in Tile view

The following may give you some idea of how this works.
by jvierra
Tue Apr 17, 2018 8:46 pm
Forum: PowerShell GUIs
Topic: ListView subitems not showing in Tile view
Replies: 10
Views: 209

Re: ListView subitems not showing in Tile view

The ListView is a very unmanageable control and I do not have any examples that do what you want. The behavior of the control is also very flakey if you mix different modes. Tomorrow I will try to put together an example that may be helpful. I, personally, avoid the control because it seldom does wh...
by jvierra
Tue Apr 17, 2018 7:27 pm
Forum: PowerShell GUIs
Topic: ListView subitems not showing in Tile view
Replies: 10
Views: 209

Re: ListView subitems not showing in Tile view

Without columns you will not see subitems. In "Tile" view you will not see subitems. Add columns and switch to detail view to see all items and subitems.
by jvierra
Tue Apr 17, 2018 7:05 pm
Forum: PowerShell GUIs
Topic: ListView subitems not showing in Tile view
Replies: 10
Views: 209

Re: ListView subitems not showing in Tile view

The form you posted has NO code at all. It is just a form with a control.
Defining groups and items does not create a list. It just creates the template.
by jvierra
Tue Apr 17, 2018 6:18 pm
Forum: PowerShell GUIs
Topic: ListView subitems not showing in Tile view
Replies: 10
Views: 209

Re: ListView subitems not showing in Tile view

No code and it does not clear up what you are asking. What is the question?