Search found 31 matches

by hrlarsen
Sun Nov 13, 2022 4:12 am
Forum: Wish List and Feature Requests
Topic: WPF / XAML Editor finally coming?
Replies: 5
Views: 27690

Re: WPF / XAML Editor finally coming?

Yes the issue is: That people have to do WPF design other places everytime. Because they need support for "WPF" and "UWP" platforms. And not just "Winforms" Visual Studio 2022. Create the initial layout by entering XAML in Visual Studio for the Grids, StackPanels, DockP...
by hrlarsen
Fri Nov 04, 2022 4:19 am
Forum: PowerShell GUIs
Topic: How do you create exe.file
Replies: 1
Views: 586

How do you create exe.file

Setup -------------- File.ps.1 (data from WPF form via 2 xaml files.) File1.xaml (mainwindow1) File2.xaml (window2) How to create 1 exe file in Powershell Studio in that setup? That cant run on multi Windows computers after. Is it unly possible via one file.ps1. Where all the xaml is inside that one...
by hrlarsen
Sat Feb 12, 2022 1:21 am
Forum: Former and Future Customers - Questions
Topic: PowerShell Studio
Replies: 1
Views: 7111

PowerShell Studio

PowerShell Studio GUI
Windows 10/11

How do you see all Code in Powershell Studio on 1 view page overview.
When creating a Powershell Gui Form, and all the scripts behind it?
That are hidden away in the program.
by hrlarsen
Sat May 11, 2019 3:35 am
Forum: PowerShell GUIs
Topic: Listview alphabetical a-z Ascending and Descending
Replies: 2
Views: 1901

Listview alphabetical a-z Ascending and Descending

Listview form how to sort it alphabetical a-z What I mean is Ascending and Descending. I will try to give more information about her what I am after. First we create the standard ListView Form size ect I am not gonna list all about that. # ListView form $ListView = New-Object System.Windows.Forms.Li...
by hrlarsen
Fri Aug 10, 2018 8:46 am
Forum: PowerShell GUIs
Topic: Windows.Forms.ListView
Replies: 19
Views: 6180

Re: Windows.Forms.ListView

Thanks I am trying to do this in pure code in the editor. The problem whit the designer is very high. You cant see any code when you change things, even if you dobbelt clik on the form elements. You unly get the form or click function top showen, so that part is very limitet in the program. That is ...
by hrlarsen
Fri Aug 10, 2018 3:44 am
Forum: PowerShell GUIs
Topic: Windows.Forms.ListView
Replies: 19
Views: 6180

Re: Windows.Forms.ListView

Have been looking at what you said. STEP1 # Add HEAD columns ListView $listView.Columns.Add("Header items text") ------------------------------------------------------------------------------ STEP2 # Adds a new group $listViewGroup1 = New-Object -TypeName 'System.Windows.Forms.ListViewGrou...
by hrlarsen
Thu Aug 09, 2018 10:35 am
Forum: PowerShell GUIs
Topic: Windows.Forms.ListView
Replies: 19
Views: 6180

Re: Windows.Forms.ListView

Thanks Can you make 1 listview demo like this. ---------- Group1 Checkbox itemtext1 Checkbox itemtext2 Group2 Checkbox itemtext3 Checkbox itemtext4 --------- button here. If listview items is checked and variable from itemtext1 ok execute. If listview items is checked and variable from itemtext2 ok ...
by hrlarsen
Tue Aug 07, 2018 2:19 am
Forum: PowerShell GUIs
Topic: Windows.Forms.ListView
Replies: 19
Views: 6180

Re: Windows.Forms.ListView

okay can you show me a example that really work corretly as it was ment to. The unly solution that I get to work is: #listViewItem1 checked if($listViewItem1.checked -eq $true) { do your script } #listViewItem2 checked if($listViewItem2.checked -eq $true) { do your script } # or whit checked if($lis...
by hrlarsen
Mon Aug 06, 2018 2:46 pm
Forum: PowerShell GUIs
Topic: Windows.Forms.ListView
Replies: 19
Views: 6180

Re: Windows.Forms.ListView

As standard (name) is $listView.Name = "listView1"
But I have renamed it to = "$1"

What variable code am I missing.
by hrlarsen
Mon Aug 06, 2018 2:24 pm
Forum: PowerShell GUIs
Topic: Windows.Forms.ListView
Replies: 19
Views: 6180

Re: Windows.Forms.ListView

The name is $1 for Item
# Add list items

Code: Select all

$ListViewItem = New-Object System.Windows.Forms.ListViewItem('Item 1')
$ListView.Items.Add($ListViewItem)
$ListViewItem.Name = '$1'
$Form.Controls.Add($ListView)