.net的winfrom程序 窗体透明&打开窗体时出现在屏幕右上角

窗体透明,

将Form的属性Opacity,由默认的100% 调整到 80%(尽量别低于50%),这个数字越小越透明!


打开窗体时出现在屏幕右上角

cs 复制代码
//构造函数
public frmCalendarList()
{
    InitializeComponent();

    //打开窗体,窗体出现在屏幕右上角
    this.StartPosition = FormStartPosition.Manual;//页面打开方式:默认(不要选CenterScreen之类)
    this.Left = Screen.PrimaryScreen.WorkingArea.Width - this.Width;//位置靠右
    this.Height = Screen.PrimaryScreen.WorkingArea.Height;//高度撑满屏幕高度
}

具体效果

相关推荐
sleveen2 小时前
Sailflow工作流引擎——全功能地图手账
开源·.net·工作流·oa引擎
Warson_L1 天前
.NET 8 速成笔记 16:API 框架到底怎么用,谁是自带的、谁是自己写的、配置和测试库如何关联
c#·.net
IT规划师2 天前
Redis 网络模型 | 客户端输出、输入缓冲区
redis·.net
2395730493 天前
Avalonia 12 代码编辑器性能横评:TKCode.Arc CodeEditor vs AvaloniaEdit 12.0(含深度调优实战)
c#·.net·avalonia·codeeditor·tkcode.arc
MicrosoftReactor3 天前
技术速递|Aspire 17 正式发布,已准备好投入生产使用
人工智能·ai·go·.net·agent·aspire
Jeff-Tsai5 天前
Polhem MD:用自己的 AI 模型读写 Markdown 的桌面编辑器
ai·.net·markdown·avalonia