467,925 Members | 1,812 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,925 developers. It's quick & easy.

Form Icon at Design Time

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?

Apr 16 '07 #1
  • viewed: 1208
Share:
2 Replies
Can't you load the icon by adding it to your resources file, and then
access it?

Robin S.
--------------------------
"James Arnold" <ja****@gmail.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
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?

Apr 17 '07 #2
On 17 Apr, 08:16, "RobinS" <Rob...@NoSpam.yah.nonewrote:
Can't you load the icon by adding it to your resources file, and then
access it?

Robin S.
--------------------------"James Arnold" <jar...@gmail.comwrote in message

news:11**********************@b75g2000hsg.googlegr oups.com...
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?
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.

Apr 19 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Vic | last post: by
2 posts views Thread by Sakharam Phapale | last post: by
3 posts views Thread by Nina | last post: by
3 posts views Thread by Alan T | last post: by
reply views Thread by James Arnold | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.