Privacy policy. The Icon property for a project specifies the icon file. The Icon property can be accessed in the Application pane of the Project Designer ; it contains a list of icons that have been added to a project either as resources or as content files. After you set the icon property for an application, you might also set the Icon property of each Window or Form in the application. In Solution Explorer , choose a project node not the Solution node.
Visual Basic —In the Icon list, choose an icon. In the program files I found. Could please help where am I doing wrong.
I've updated my post, check the settings if they help you. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Visit chat. Related Hot Network Questions. Question feed. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. Changing the default icon in a Windows Forms application Ask Question. Asked 11 years, 1 month ago.
Active 29 days ago. Viewed k times. What is the right way of doing it? Improve this question. Peter Mortensen Srivastava Srivastava 3, 10 10 gold badges 40 40 silver badges 72 72 bronze badges. Are you changing the property of the form, or the application? What icons are stored in your desktop? Make sure its in ico format. If you're looking for icons that are already in the correct format to use in your application, see the answers to this question: stackoverflow.
Add a comment. Active Oldest Votes. Improve this answer. Javed Akram Javed Akram ComponentResourceManager typeof MyForm ; this. Icon resources. GetObject "statusnormal. Icon" ; or, by directly reading from your Resources: this. Csomotor Csomotor 2 2 silver badges 5 5 bronze badges. This is the best answer among all. In VB. This should be the top answer. The only that keeps the icon in the exe file.
0コメント