如何在打印预览对话框上显示图标 [英] How to display an icon on a print preview dialog

查看:196
本文介绍了如何在打印预览对话框上显示图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在打印预览对话框表单的左上角显示我自己的图标,或者如何禁用它以显示默认图标,使其不显示任何图标?

How do I display my own icon on the top left corner of the print preview dialog form, or how do I disable it from showing the default one so it doesn''t show any icon?

推荐答案

Icon属性被隐藏,这就是为什么您看不到它的原因.
如果您的图标位于bin/debug和bin/release文件夹中:
The Icon property is hidden, that''s why you can''t see it.

If you have your icon in the bin/debug and bin/release folder:
printPreviewDialog1.Icon = new Icon("youricon.ico");



或者,如果您将图标添加到资源":



Or, if you add your icon to Resources:

printPreviewDialog1.Icon = Resources.youricon;


这篇关于如何在打印预览对话框上显示图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆