Versions des environnements
>Hi,
>
>I added a MDI Parent form class to my project. I can see that the menuStrip of this form has images for all items of the menu. I see all the images used in the menuStrip items in the .RESX file of the form (e.g. MyMDIParent.resx). Then I want to change which image is used for this or that item. So I go to the menuStrip item -> Properties. The Image property of the item shows the image and has ellipses to select (and I suppose) to change the image. When I click on the ellipses I get a window Select Resource. And this is where things get confusing.
>
>The Select Resource has two choices:
>
>1. Local Resource. This choice has two buttons Import and Clear. When I click on Import I get a window prompting to open an image file.
>
>2. Project Resource File. Default choice is Resources.resx. But I thought that here I would see the .resx file of the form from which to select an image.
>
>So I don't see a way to replace a default image with some other image from the form. RESX file.
>
>Please let me know what I am missing.
I think that's the way it is. If you want to use the same image in the Forms resource file you need to select the actual image file again.
Although there will be multiple references in the forms resource file the actual image is only imported once.
You can edit (or add) the relevant 'resources.GetObject' line in the form designer and then delete the unused resource from the Form .resx to make things look cleaner - but it's probably not worth it......
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement