Home > Articles > Programming > Visual Basic

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Add an Icon

add_an_icon.jpg

All Windows applications need an icon. If you don’t provide one, Visual Studio will use the default icon. The default image isn’t very exciting, and it doesn’t distinguish your application from all the others out there. So let’s use the Project Properties dialog to add a custom icon to Hello, World. To make that happen in a WPF application (other application types can be a little different), we need just three steps:

  1. Specify the icon file in the Application tab of Project Properties.
  2. Build the application to make the icon available.
  3. Set the icon property of the window in the WPF Designer.
  • + Share This
  • 🔖 Save To Your Account