将图标图像添加到vb.net中的项目 [英] add icon image to project in vb.net
本文介绍了将图标图像添加到vb.net中的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在vb.net Windows应用程序中向项目添加图标图像?创建设置时可以添加图标吗?以便将其应用于应用程序中的所有表单.
How to add icon image to project in vb.net windows application? Can I add icon at the time of creating setup. So that it will apply to all forms in application.
推荐答案
请参阅此处: ^ ]
将来,请尝试至少自己进行基础研究,不要浪费您的时间或我们的时间.
See here: How to: Specify an Application Icon (Visual Basic, C#)[^]
In future, please try to do at least basic research yourself, and not waste your time or ours.
Application Icon
可以按照Solution 1.
中的设置进行设置. 现在要在应用程序中设置每个表单的Icon
,另一种方法是在资源"中放置一个Icon,该Icon文件可以包含在Setup项目中,然后在每个Form
的Load事件中设置资源中 Form
对Icon
的属性,如
Application Icon
can be set as already given inSolution 1.
Now to set theIcon
of each form in the application, one alternative is to put an Icon in the Resources, the Icon file can be included in the Setup project, then in the Load event of eachForm
set theIcon
property of theForm
to theIcon
in the Resources like
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Icon = My.Resources.FormIcon
End Sub
这篇关于将图标图像添加到vb.net中的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文