Resource Name is Invalid Identifier

G

Greg

I've added some ICO Images to some buttons on my forms. I added them by
selecting an Image via the "Select Resource" window. Anyway, all of my images
are working just fine, I am getting a WARNING message that says

- Resource Name "Picture Image Name" is not a valid Identifier.

I don't understand what this is telling me. I prefer my projects to have no
warning messages all and I would like ot fix what ever the problem is here. I
have other ICO files in my Resource file and they don't display this warning
message. I also get this message for BMP file types as well. In all, I have
10 images setup and only one of them does not display this message and that
is a file type of BMP.

Any solutions?

Thanks
 
L

Linda Liu[MSFT]

Hi,
I added them by selecting an Image via the "Select Resource" window.

If you select the "Local resource" option in the "Select Resource" window,
the selected image is from the form.resx file. If you select the "Project
resource file" option, the selected image is from a standalone resource
file, e.g. Resources.resx.
Anyway, all of my images are working just fine, I am getting a WARNING
message that says - Resource Name "Picture Image Name" is not a valid
Identifier.

When do you get this warning? You may check the code in the
InitializeComponent method within the Form.Designer.vb file to find which
line of code causes this warning.

If the problem is still not solved, please send me a simple project that
could just reproduce the problem. To get my actual email adress, remove
'online' from my displayed email address.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Greg

I'll see about sending you the project with the problem. The files causing
the warning message are not associated with anything yet. They are just a
part of my resource file. They were added by clicking on a control's Image
property and then choosing the Resource file option when adding the project.
Thus, these have all been added to my resource file.

The "Warnings" messages are always available in the "Error" listing Warnings
section of Visual Studio.

The Warnings have NO associated file as these images are not yet used in any
file. When I added them originaly, I may have selected them on another form
that has since been deleted.

These warnings do not prevent my program from running. I just want to know
why I'm getting this warning message.

Also, when you view the files from the Project Properties window using the
Resources tab, you see a Red Circle with an X in it for all the files
reporting this warning.

So, I have just two questions:

1. What does this message mean?
2. What must I do to get rid of the warning messages.

Thanks,
Greg
 

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

Similar Threads

Use of resource images 3
Icons is Resource Area 1
Class Library Resource Images 1
icon for UserControl 4
New Resource 3
ICO files and BMP files 1
Icon files 13
Hidden resource files? 1

Top