使用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
相关推荐
诚信爱国敬业友善2 天前
GUI编程(window系统→Linux系统)
linux·python·gui
一夜空中最亮的星一14 天前
【Windows】PowerShell 缓存区大小调节
windows·缓存·powershell·ps·windows 终端
安冬的码畜日常18 天前
【工欲善其事】利用 DeepSeek 实现复杂 Git 操作:从原项目剥离出子版本树并同步到新的代码库中
git·ai·powershell·cherry-pick·deepseek·deepseek r1·deepseek v3
Eastmount1 个月前
[论文阅读] (36)C&S22 MPSAutodetect:基于自编码器的恶意Powershell脚本检测模型
论文阅读·系统安全·powershell·自编码器·恶意代码检测
rongjv1 个月前
[rustGUI][iced]基于rust的GUI库iced(0.13)的部件学习(05):svg图片转为png格式(暨svg部件的使用)
rust·gui·iced
rongjv1 个月前
[rustGUI][iced]基于rust的GUI库iced(0.13)的部件学习(04):实现窗口主题(颜色)变换(暨menu菜单的使用)
rust·gui·iced
深栈1 个月前
Tkinter组件-Button按键
python·gui·tkinter
TazmiDev1 个月前
Rust语言使用iced实现简单GUI页面
开发语言·rust·gui·桌面开发
林志辉linzh1 个月前
安卓硬件加速hwui
gui·硬件加速·egl·renderthread·hwui
rongjv1 个月前
[rustGUI][iced]基于rust的GUI库iced(0.13)的部件学习(03):图像的导入、显示、调整(暨image部件的使用介绍)
rust·gui·iced