Search found 6 matches
- Tue Nov 30, 2021 10:08 pm
- Forum: PowerShell GUIs
- Topic: Button Yes No
- Replies: 5
- Views: 1704
Re: Button Yes No
Thanks for the reply. This still closes the AssetForm once I click on No. I changed the code to below exactly as suggested in your reply: $buttonLater_Click = { switch ([System.Windows.MessageBox]::Show('Do you want to complete later?', 'Confirm', 'YesNo', 'Warning')) { 'Yes' { $dt = Get-Date -Forma...
- Tue Nov 30, 2021 5:11 pm
- Forum: PowerShell GUIs
- Topic: Button Yes No
- Replies: 5
- Views: 1704
Button Yes No
Hi I am working on a GUI script that opens a pop up when "Later" button on the GUI is clicked. The pop up has "Yes" and "No" buttons and the message says if you want to complete the form later. If yes is clicked the form closes but when no is clicked, I want the pop up ...
- Sun Nov 28, 2021 9:23 pm
- Forum: PowerShell GUIs
- Topic: $Treeview focus
- Replies: 5
- Views: 2180
Re: $Treeview focus
Thanks Heaps!
This works perfect and fulfills what we require.
For anyone else interested in the code:
$treeList.ExpandAll()
$treeList.SelectedNode = $treeList.Nodes[0]
$treeList.SelectedNode = $null
This works perfect and fulfills what we require.
For anyone else interested in the code:
$treeList.ExpandAll()
$treeList.SelectedNode = $treeList.Nodes[0]
$treeList.SelectedNode = $null
- Sun Nov 28, 2021 8:39 pm
- Forum: PowerShell GUIs
- Topic: $Treeview focus
- Replies: 5
- Views: 2180
Re: $Treeview focus
Tried the below code and it works: $treeview1.SelectedNode = $treeview1.Nodes[0] But it pre selects the list value as the top of the tree. This is a mandatory field on my form and pre selecting the value defeats the purpose of making user enter this value. Is there a way I can keep the focus on top ...
- Sun Nov 28, 2021 8:15 pm
- Forum: PowerShell GUIs
- Topic: $Treeview focus
- Replies: 5
- Views: 2180
Re: $Treeview focus
Hi,
I get the below error:
The property 'FocusedNode' cannot be found on this object. Verify that the property exists and can be set. I have used the code after $treelist1.expandall()
I get the below error:
The property 'FocusedNode' cannot be found on this object. Verify that the property exists and can be set. I have used the code after $treelist1.expandall()
- Mon Nov 22, 2021 11:00 pm
- Forum: PowerShell GUIs
- Topic: $Treeview focus
- Replies: 5
- Views: 2180
$Treeview focus
To help you better we need some information from you. *** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. *** Product, version and build: Sapien PowerShell ...