Click here to Skip to main content
15,915,336 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 9-Apr-12 0:41am
v2

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.
 
Share this answer
 
Comments
VJ Reddy 9-Apr-12 6:48am    
+5.
Monjurul Habib 10-Apr-12 1:15am    
5!
dcba1 10-Apr-12 2:17am    
I know that solution. I have already apply icon in the project properties. But when I run the application it doesn't show that icon. When I create the project setup and install on pc then it should show that icon on short cut of the application.
Application Icon can be set as already given in Solution 1.
Now to set the Icon 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 each Form set the Icon property of the Form to the Icon in the Resources like
VB
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Me.Icon = My.Resources.FormIcon
End Sub
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900