473,411 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Resource Name is Invalid Identifier

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
2 7209
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Scott Smith | last post by:
Several attributes and interface methods I'm using refer to resources (such as strings or icons) by a numeric ID. This was the only way to refer to resources in unmanaged code (C++, for example),...
0
by: Bill | last post by:
Hi Everyone, I am having some difficulty in using the Windows Resource Localization Editor (WinRes.exe) on several Visual Basic .NET forms (.resx files) in two different projects. The editor...
2
by: HaukiDog | last post by:
Hi, I am trying to set up my C# web project to be compiled by NANT. Everything compiles and works fine within the IDE. I have a created a NANT build file which has a simple project tag, like...
1
by: Tony | last post by:
i'm new to c# & .net and I have a question: How do I attach a wav resource to a form (or to a seperate .rc file) and get the resource identifier so I can use the playsound api? its a simple...
2
by: Sugapablo | last post by:
I have a small test script connecting to a MySQL database. It seems to work, unless I try to use the resource link identifier returned by mysql_connect(); This works and returns all the rows in...
9
by: Alf P. Steinbach | last post by:
<what to design a C++ solution for> A Windows API /resource/ is data embedded in the executable, accessed via API functions. A resource is completely identified by the quadruple (id, type,...
12
by: -Lost | last post by:
What in the world is functionName.name good for? That is: function functionName() { return functionName.name; } I mean, I already had to write out the function's name so it seems that it is...
7
by: Kurda Yon | last post by:
Hi everybody, I cannot understand the following thinks. The last line of the fillowing code produces a message about mistake (not a valid MySQL- Link resource): $link = mysql_connect(...
11
by: Kurda Yon | last post by:
Hi, I got this warning: mysql_query(): 4 is not a valid MySQL-Link resource. The line which cause this warning is: mysql_query("insert into $tablename (id,priority) values('$id', '0.00')",...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.