tags:

views:

26

answers:

2

I am working on .NET 2.0 with C#. I am using Form Border Style as "FixedToolWindow". I am not able to add icon with this property.

Is it possible to add icon with this property? If so, give me a solution.

+1  A: 

No. Windows does not draw an icon for FixedToolWindow. There are other options including drawing your own window, but that could be tedious.

Daniel A. White
+2  A: 

Tool windows don't use icons.

For a similar style, you could set the window style to FixedSingle and disable the Min/Max buttons instead.

Barry
In that also it is possible to drag window from the corner. I don't want the windows to be drag. Any other way is present?
informative
@informative - FixedSingle prevents the window from being resized.
Barry
But my taskbar gets invisible when I make the window state to be maximized. What can I do for that?
informative
@informative - It behaves in the same way as FixedToolWindow would.
Barry
@informative: why would you allow a tool window to be maximized?
Hans Passant
Now I used Fixed Single and set the MaximizeBox property to False as Barry told. It works fine as I thought. Thanks a lot.
informative