473,797 Members | 3,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7244
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
InitializeCompo nent method within the Form.Designer.v b 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
InitializeCompo nent method within the Form.Designer.v b 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
4160
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), but I'm writing in C# now, and it seems that resources are named with string identifiers. Visual Studio doesn't seem to like resource names such as "100", so I'm wondering how this could work. Is it absolutely necessary for me to have a...
0
507
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 gives an error when loading the .resx files. When attempting to load a .resx file using WinRes under Visual Studio .NET 2003, the following error is displayed in the client area of the editor: "An error occurred while loading the document. Fix...
2
3817
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 this: <?xml version="1.0" ?> <project name="MyProject" default="build" basedir="."> <description>The Hello World of build files.</description> <property name="debug" value="true"/>
1
1505
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 request but it seems really obtuse in the visual studio ide. thanks!
2
2838
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 the table: <?php include("../config.php"); $dbi = mysql_connect($dbhost,$dbuname,$dbpass);
9
2856
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, language, file), where (1) id is what, for want of a better name, I'll call a /kludgeon/, (2) type is also a kludgeon, (3) language is a small integer identifying a concrete national language or one of a set of pseudo-languages such as the Windows...
12
3486
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 not very useful or efficient. To me, this.name seems most appropriate, but of course that does not work within the context of a function unless defined as a class, which of course then the name property does not apply to the calling function.
7
13491
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( "localhost","tmp_user","tmpxxx" ); mysql_select_db( $db_name, $link); $link = mysql_connect( "localhost","tmp_user","tmpxxx" ); mysql_close( $link );
11
13216
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')", $link2); As far as understand the problem is that $link2 is "not a valid MySQL-
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9537
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10469
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10246
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10209
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6803
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.