Note that there are some explanatory texts on larger screens.

plurals
  1. POWPF - remove system menu icon from modal window, but not main app window
    primarykey
    data
    text
    <p>I'm trying to do (in WPF):</p> <ol> <li>Have an .exe file that displays the system menu icon (the icon in the upper left of the window) like normal</li> <li>Not have this icon show up in modal windows called by this app</li> </ol> <p>I tried the solution here: <a href="https://stackoverflow.com/questions/2341230/removing-icon-from-a-wpf-window">Removing Icon from a WPF window</a></p> <p>And this worked. There's a downloadable sample of the same thing at: <a href="http://blogs.msdn.com/b/wpfsdk/archive/2007/08/02/a-wpf-window-without-an-window-icon-the-thing-you-click-to-get-the-system-menu.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/b/wpfsdk/archive/2007/08/02/a-wpf-window-without-an-window-icon-the-thing-you-click-to-get-the-system-menu.aspx</a></p> <p>However, it stops working if I add an .ico file to the .exe's project properties (Properties -> Application -> Icon and Manifest). You can try this with the downloadable sample.</p> <p>It seems that the icon from the .exe is used in the modal windows too (which we have in .dll files) even if the properties of that .dll says "default icon". It must get passed down from the .exe. So, is there a way to show the icon on the main window, but not on a child window?</p> <p>Possibly, an easier way of asking this is: Is it possible to remove the icon even though there's an .ico file specifies in the project's properties?</p> <p>The only thing I've found to work is to set the WindowStye of the modal window to "ToolWindow". This gives me almost what I want: no icon and the "Close" button ("x" in upper right) is still there. Yet, the x is super small. Is this the best there is?</p> <p>Thanks for any help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload