使用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
相关推荐
charlee448 天前
Git使用经验总结8-Git仓库历史记录清除
git·powershell·敏感信息·仓库重置·历史重写
sayang_shao10 天前
STM32 F4移植LVGL 9.4.0版本教程(Keil工程,裸机)
stm32·gui·lvgl
微小冷23 天前
Rust图形界面教程:egui基础组件的使用
后端·rust·gui·egui·button·panel·用户图形界面
tq108623 天前
一个简单的 PowerShell REPL 脚本
powershell
guojikun1 个月前
一键配置 Web 前端开发环境(PowerShell 自动化脚本)
windows·web前端·powershell
WarPigs1 个月前
Powershell笔记
脚本·powershell
jz_ddk1 个月前
[LVGL] 从0开始,学LVGL:进阶应用与项目实战(上)
linux·信息可视化·嵌入式·gui·lvgl·界面设计
struggle20251 个月前
AxonHub 开源程序是一个现代 AI 网关系统,提供统一的 OpenAI、Anthropic 和 AI SDK 兼容 API
css·人工智能·typescript·go·shell·powershell
jz_ddk2 个月前
[LVGL] 从0开始,学LVGL:基础构建篇 - 掌握UI的核心构建块
linux·网络协议·ui·rpc·嵌入式·gui·lvgl
中草药z2 个月前
【Docker】零基础上手:原理+Ubuntu/Windows GUI 安装 + 镜像源 / 目录优化
运维·ubuntu·docker·容器·gui·安装·cgroups