If you want to hide your windows form from taskbar then you can do this through
this.ShowInTaskbar = false;
or you can set this through property window by setting
ShowInTaskbar to
False
Note: there are other ways to close the app
Hope, it helps :)
Reference:
Form.ShowInTaskbar Property [
^]