Hide NotificationForm from Alt+Tab and Win+Tab menu

This commit is contained in:
Charles Milette 2017-09-30 19:04:21 -04:00
parent 4ee76af0ea
commit 7ba3956d0d
No known key found for this signature in database
GPG key ID: 9BC74CC51CB137CE

View file

@ -48,6 +48,15 @@ public class NotificationForm : Form
private int urlPadding = 3;
private Size textRenderSize;
protected override CreateParams CreateParams {
get {
// Turn on WS_EX_TOOLWINDOW style bit
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x80;
return cp;
}
}
public NotificationForm(int duration, int fadeDuration, ContentAlignment placement, Size size, NotificationFormConfig config)
{
InitializeComponent();