Form Icon at Design Time

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?
 
R

RobinS

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

Robin S.
 
J

James Arnold

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top