Search found 14694 matches

by jvierra
Tue Jan 12, 2021 7:06 am
Forum: PowerShell
Topic: What are the implications of disabling powershell
Replies: 1
Views: 1178

Re: What are the implications of disabling powershell

PowerShell is a required program in Windows. It cannot be disabled without causing problems for the system.
by jvierra
Tue Jan 12, 2021 12:31 am
Forum: PowerShell GUIs
Topic: Main function moved from Startup.pss to Globals.ps1
Replies: 5
Views: 560

Re: Main function moved from Startup.pss to Globals.ps1

What template? There is no template here it is just files with code structured so the Sapien code assembler can load the files in the correct order. You can alter that as needed but I am just saying that there is no reason to do that. The code assembler does that for you. Startup.pss is inserted fir...
by jvierra
Sun Jan 10, 2021 7:07 am
Forum: PowerShell GUIs
Topic: Main function moved from Startup.pss to Globals.ps1
Replies: 5
Views: 560

Re: Main function moved from Startup.pss to Globals.ps1

Where the code is in the project has little to do with things. The code handles things correctly for both a PowerShell script and builds correctly for all packaging methods. Making your changes will not change that. The code you are wanting to use will work correctly the way the files are currently ...
by jvierra
Sat Jan 09, 2021 11:09 am
Forum: PowerShell GUIs
Topic: Main function moved from Startup.pss to Globals.ps1
Replies: 5
Views: 560

Re: Main function moved from Startup.pss to Globals.ps1

Why? The code won't assemble the same way. In coding and technology it is usually not a good idea to just change things for no reason or because they look prettier.
by jvierra
Fri Jan 08, 2021 2:27 pm
Forum: PowerShell GUIs
Topic: GUI Questions
Replies: 2
Views: 443

Re: GUI Questions

Themes in WinForms are managed by the system. We can only choose what is available. You could detect the current theme then set your icons.

As far as I can tell, full themes are only available in WPF.
by jvierra
Wed Jan 06, 2021 3:10 pm
Forum: PowerShell GUIs
Topic: [SOLVED]Select multiple lines by code in a listbox
Replies: 2
Views: 442

Re: Select multiple lines by code in a listbox

I am sorry but your request is not very clear. I cannot see or understand what the purpose of your code is or what you mean by your question. To find select3ed items in a ListBox you need to look at the items that are in the "SelectedItems" property of the ListBox. Here is a good article to help you...
by jvierra
Mon Jan 04, 2021 7:03 pm
Forum: PowerShell
Topic: DevOps automation
Replies: 2
Views: 1349

Re: DevOps automation

Your question is good but possibly too broad. I find that almost anything can be automated as long as it has a published API or an automation interface. COM, Net and most Win32 APIs can be accessed to create automation solutions. Remember that the term "automation" is general to all of computing. We...
by jvierra
Tue Dec 29, 2020 4:55 am
Forum: PowerShell
Topic: Shared function not working in Powershell Studio 2020?
Replies: 7
Views: 1793

Re: Shared function not working in Powershell Studio 2020?

Add file to project and set "Shared=True" on file properties page. https://info.sapien.com/manuals/powershell_studio/sps_proj_projectfileproperties.html The "Product Manual" is the best place to start when learning how to use PowerShell Studio. https://info.sapien.com/manuals/powershell_studio/index...
by jvierra
Tue Dec 29, 2020 12:06 am
Forum: PowerShell
Topic: Shared function not working in Powershell Studio 2020?
Replies: 7
Views: 1793

Re: Shared function not working in Powershell Studio 2020?

No. Just add the file as a shared file. It will be loaded globally to the program and combined into the final PS1 file.
by jvierra
Mon Dec 28, 2020 11:00 pm
Forum: PowerShell
Topic: Shared function not working in Powershell Studio 2020?
Replies: 7
Views: 1793

Re: Shared function not working in Powershell Studio 2020?

dot sourcing scripts should cause them to be included in the project. The script will only be inserted into the current scope. To insert globally load in "globals". A script that is a set of functions will be included when shared. A module will not normally work as it may have dependencies that will...