小智 6
一个可能的解决方案(对我来说效果很好)是覆盖 CreateParams 属性并设置要在任务栏中显示的标题:
protected override CreateParams CreateParams
{
get
{
new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
// Extend the CreateParams property of the Button class.
CreateParams cp = base.CreateParams;
// Update the button Style.
cp.Style &= ~0xC00000; //WS_CAPTION;
cp.Caption = PRODUCT_NAME;
return cp;
}
}
Run Code Online (Sandbox Code Playgroud)
我希望这对你有用
丽莎
归档时间: |
|
查看次数: |
5380 次 |
最近记录: |