使用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
相关推荐
fengyehongWorld2 天前
Powershell 自动安装Excel自定义标签页,开启宏
powershell
Ulyanov2 天前
Python GUI工程化实战:从tkinter/ttk到可复用的现代化组件架构
开发语言·python·架构·gui·tkinter
西西弗Sisyphus3 天前
PowerShell 配置为启动时自动激活 Conda 环境
conda·powershell
Ulyanov3 天前
基于Tkinter/ttk的现代化Python GUI开发全攻略:从布局设计到视觉美化(三)
开发语言·python·gui·tkinter·ttk
charlie1145141914 天前
通用GUI编程技术——Win32 原生编程实战(十六)——Visual Studio 资源编辑器使用指南
开发语言·c++·ide·学习·gui·visual studio·win32
Be1k07 天前
推荐一款语雀知识库批量导出工具
python·gui·工具·语雀·批量导出·原创
charlie11451419116 天前
通用GUI编程技术——Win32 原生编程实战(五)——ListView 控件详解
windows·学习·gui·win32·编程指南
懷淰メ17 天前
python3GUI--socket+PyQt5开发局域网微信(含功能、详细介绍、分享)
python·学习·gui·大学生·pyqt5·微信界面
夫唯不争,故无尤也18 天前
curl与Invoke-RestMethod核心区别
后端·fastapi·powershell·curl
bu_shuo19 天前
Windows电脑使用VSCode远程控制Windows主机方法记录
windows·vscode·ssh·powershell