使用powershell构建gui界面

使用powershell构建gui界面:

参考:

https://blog.csdn.net/gjmjack/article/details/124032293

c 复制代码
# Create a new button instance
 
$button1 = New-Object System.Windows.Forms.Button;
 
# Set button property
 
$button1.Location = New-Object System.Drawing.Point(257, 150);
$button1.Name = "button1";
$button1.Size = New-Object System.Drawing.Size(284, 103);
$button1.TabIndex = 0;
$button1.Text = "工作使我快乐";
$button1.UseVisualStyleBackColor = $true;

无法运行.ps1脚本(powershell脚本)处理办法:

参考:

https://blog.csdn.net/gao_zhennan/article/details/131719371

c 复制代码
Get-ExecutionPolicy -List
Set-ExecutionPolicy -ExecutionPolicy AllSigned CurrentUser
Get-ExecutionPolicy -List
相关推荐
点云SLAM14 天前
Windows CMD(命令提示符)中最常用的命令汇总和实战示例
windows·microsoft·visual studio·powershell·cmd命令提示符·bat文件·win环境批处理
等不到来世15 天前
npm : 无法加载文件 C:\Program Files\nodejs\npm.ps1
npm·powershell
Ronin-Lotus16 天前
上位机知识篇---Prompt&PowerShell Prompt
prompt·powershell
Мартин.22 天前
Operation Blackout 2025: Smoke & Mirrors
powershell
墨雪遗痕1 个月前
中文Windows系统下程序输出重定向乱码问题解决方案
rust·编码·powershell
粉色挖掘机1 个月前
PowerShell批量处理文件名称/内容的修改
powershell
noravinsc2 个月前
powershell 获取 用户及进程列表
windows·powershell
南岩亦凛汀2 个月前
在Linux下使用wxWidgets进行跨平台GUI开发(三)
c++·跨平台·gui·开源框架·工程实战教程
南岩亦凛汀2 个月前
使用wxWidgets进行跨平台GUI开发(附1)
跨平台·gui·开源框架·工程实战教程
南岩亦凛汀2 个月前
在Linux下使用wxWidgets进行跨平台GUI开发(二)
跨平台·gui·开源框架