Home All Groups Group Topic Archive Search About

How to remove a window-Icon

Author
8 Apr 2005 3:58 PM
Peter Stojkovic
I have programmed a window with an icon.
Now I want, that this window has NO Icon.

But I can not remove the icon within VS.NET.
I can only select an other ICON !


How can I remove the icon from the window ?

Is a window without Icon possible ?


Thanks
Peter

Author
8 Apr 2005 4:43 PM
rawCoder
Play with FormBorderStyle or set ControlBox to false.
HTH
rawCoder

Show quoteHide quote
"Peter Stojkovic" <Peter.Stojko***@gmx.net> wrote in message
news:e1Sup$EPFHA.3788@tk2msftngp13.phx.gbl...
> I have programmed a window with an icon.
> Now I want, that this window has NO Icon.
>
> But I can not remove the icon within VS.NET.
> I can only select an other ICON !
>
>
> How can I remove the icon from the window ?
>
> Is a window without Icon possible ?
>
>
> Thanks
> Peter
>
>
>
>
>
Author
8 Apr 2005 5:48 PM
Herfried K. Wagner [MVP]
"Peter Stojkovic" <Peter.Stojko***@gmx.net> schrieb:
>I have programmed a window with an icon.
> Now I want, that this window has NO Icon.
>
> But I can not remove the icon within VS.NET.
> I can only select an other ICON !
>
>
> How can I remove the icon from the window ?

You can remove a custom icon from a window by either placing the cursor over
the "(Icon)" text in the properties window and pressing the Delete key or by
selecting "Reset" from the property's context menu.

> Is a window without Icon possible ?

Set the 'FormBorderStyle' property to 'FixedDialog', the 'ShowInTaskbar'
property to 'False' and the 'Icon' property to 'Nothing' (at runtime).

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>