c# 创建一个 透明 穿透 form ,屏幕字幕之类的
namespace UnActiveFormTest { public partial class Form1 : Form { public Form1() { InitializeComponent(); this.Opacity = 0.5; this.TopMost = true; } protected override CreateParams CreateParams { get { CreateParams createParams = base.CreateParams; if (!base.DesignMode) { createParams.ExStyle |= 32; createParams.ExStyle |= 8; } return createParams; } } protected override bool ShowWithoutActivation { get { return true; } } } }