Form Icon at Design Time

  • Thread starter Thread starter James Arnold
  • Start date Start date
J

James Arnold

Is there any way to set the forms icon to one stored in the resources
at design time? Currently I am using the following code in the
FormLoad event to set it at run time:

Me.Icon = My.Resources.FormIcon

You can set images in resources to buttons and pictureboxes etc at
design time, why not icons?
 
Can't you load the icon by adding it to your resources file, and then
access it?

Robin S.
 
Can't you load the icon by adding it to your resources file, and then
access it?

Robin S.

No, unlike with PictureBoxes and Buttons where you can select from the
list of current resources, when you click the "..." for the icon it
just shows a browse window to import an icon, which is saved in the
form's resx file and not the projects resources.

If you have an icon in the resources you can set it as the project
icon in the My Project tab, but not as the form icon.
 
Back
Top