简体   繁体   English

在对话框中隐藏默认图像(图标)

[英]Hide Default Image (Icon) in Dialog

Not so much of an issue, but more of a hassle to me. 不是一个问题,而是对我来说更麻烦。 I am wanting to hide the default application icon in a OpenFileDialog ; 我想在OpenFileDialog隐藏默认的应用程序图标; the icon that appears in the top left of the window. 显示在窗口左上角的图标。 I know it's the default icon for the solution, but I don't want it there. 我知道这是解决方案的默认图标,但我不希望它在那里。 Is there anyway of over-riding this and no I don't want to write my own dialog just to do this. 反正有没有超过这个,不,我不想写我自己的对话只是为了做到这一点。 There are no properties of course to alter this in any way, not sure why there isn't. 当然没有任何属性可以以任何方式改变这一点,不确定为什么没有。 Any help is greatly appreciated. 任何帮助是极大的赞赏。

Thanks, MrCodexer 谢谢,MrCodexer

There is now way to do this without writing your own dialogue, apart from if you were prepared to remove the icon from the form itself. 除了你准备从表单本身删除图标之外,现在有办法在不编写自己的对话的情况下执行此操作。 If you do not mind doing this, then remove the icon from the form by setting this value in the form properties: 如果您不介意这样做,请通过在表单属性中设置此值来从表单中删除图标:

ShowIcon: False

This will mean no icon will be show in your OpenFileDialogue as well as the form. 这意味着您的OpenFileDialogue和表单中不会显示任何图标。

Hope this helps :) 希望这可以帮助 :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM