Search found 108 matches
- Fri Dec 18, 2015 12:53 am
- Forum: PowerShell GUIs
- Topic: Treeview XML Load
- Replies: 9
- Views: 4971
Re: Treeview XML Load
Of course you realize that a config xml file is not a pure hierarchy. How can you resolve that. A tree is a pure hierarchy. Why is it a problem that the tree has more branches? The hierarchy is defined from the top to the bottom. At the end ob the branch the properties are defined with text between...
- Thu Dec 17, 2015 8:30 pm
- Forum: PowerShell GUIs
- Topic: Treeview XML Load
- Replies: 9
- Views: 4971
Re: Treeview XML Load
hi jvierra, the aim is the following: I have an config xml file which I want to load into the treeview. For the test the load will be run over a button. If you take a look into the test2.xml all nodes should be load to the treeview until the the <property> nodes. The <property> nodes should be load ...
- Thu Dec 17, 2015 3:43 am
- Forum: PowerShell GUIs
- Topic: Treeview XML Load
- Replies: 9
- Views: 4971
Re: Treeview XML Load
Thanks for your detailed post and hints. function parseXML([System.Xml.XmlNode]$node, [System.Windows.Forms.TreeNode]$treenode) { $node.ChildNodes | %{ if ($_.HasChildNodes) { $tn = $treenode.Nodes.Add($_.Name); parseXML $_ $tn } } } $_.node.HasChildNodes doesn't work, but $_.HasChildNodes.
- Wed Dec 16, 2015 8:27 am
- Forum: PowerShell GUIs
- Topic: Treeview XML Load
- Replies: 9
- Views: 4971
Treeview XML Load
hi
I tried in the last hour to fill the treeview how it should be.
goal: Add all besides of the last level.
Through the debug stepping the check "if ($node.HasChildNodes -eq $true)" is true forever, because the $node is not the last one.
How did I get the last Child?
kind regards
I tried in the last hour to fill the treeview how it should be.
goal: Add all besides of the last level.
Through the debug stepping the check "if ($node.HasChildNodes -eq $true)" is true forever, because the $node is not the last one.
How did I get the last Child?
kind regards
- Tue Dec 15, 2015 7:14 am
- Forum: PowerShell Studio
- Topic: Support for Powershell 4
- Replies: 5
- Views: 4119
Re: Support for Powershell 4
Hi Alexander, It's correct, I see v2 and v4. On the left Site is my machine with the PS Studio. On the right site my TestVM. The question from yesterday for the v5 is obsolete. *g* If no v5 is installed the v5 is not seen. =) Sometime it would be better going home instead of asking tired questions. ...
- Tue Dec 15, 2015 12:36 am
- Forum: PowerShell Studio
- Topic: Support for Powershell 4
- Replies: 5
- Views: 4119
Re: Support for Powershell 4
thanks DevinL
Do you also know what with the v5 is? How I get this into the run combobox?
regards
Do you also know what with the v5 is? How I get this into the run combobox?
regards
- Mon Dec 14, 2015 6:29 am
- Forum: PowerShell Studio
- Topic: Support for Powershell 4
- Replies: 5
- Views: 4119
Support for Powershell 4
Product, version and build: 64 bit version of product: Powershell Studio 4.2.98 Operating system: 64 bit OS: Win7 Run: v2 and v4, v3 and v5 is missing Package: v2, v3, v5, v4 is missing registered like the following link https://www.sapien.com/blog/2013/02/25/what-to-do-when-you-install-a-new-versio...
- Wed Oct 28, 2015 6:01 am
- Forum: PowerShell GUIs
- Topic: Job Handling
- Replies: 4
- Views: 1943
Re: Job Handling
$handler_dataGridView1_CellPainting = { if ($_.ColumnIndex -eq 5) { $_.Paint($_.CellBounds, [System.Windows.Forms.DataGridViewPaintParts]::Background) $_.Graphics.DrawString("- job running -", (New-Object System.Drawing.Font("Arial", 10)), (new-object System.Drawing.SolidBrush(&q...
- Tue Oct 27, 2015 12:34 pm
- Forum: PowerShell GUIs
- Topic: Job Handling
- Replies: 4
- Views: 1943
Re: Job Handling
hi jvierra, how do I get access to the reference? $datagridview1.Rows[$_.RowIndex].Cells[1].Control = $true Doesn't work. I also can't find any setfunction in the list which opens after the .....Cells[1]. point. A lot of sites writes examples like this: DataGridView1.Rows(i).Cells(2).ReadOnly = Fals...
- Tue Oct 27, 2015 12:03 pm
- Forum: PowerShell GUIs
- Topic: Job Handling
- Replies: 4
- Views: 1943
Job Handling
hi, The following Job works: if ($_.ColumnIndex -eq 6) { # # place to disable the button in the cell?? # $datagridview1.Rows[$_.RowIndex].Cells[1].Control = $false # $tb_FileCounter.Text = "Kopierte Dateien: " $pgb_robocopy.Value = 0 $source = $AblageFZDatenSnb $destination = ($AblageFZDat...