By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,156 Members | 1,009 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,156 IT Pros & Developers. It's quick & easy.

Resource Name is Invalid Identifier

P: n/a
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
Dec 9 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Dec 10 '07 #2

P: n/a
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

"Linda Liu[MSFT]" wrote:
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Dec 10 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.