?
Solved

Resources is not a member of My

Posted on 2010-09-15
3
Medium Priority
?
3,230 Views
Last Modified: 2012-05-10
I have a VB 2010 WinForm app. Often when I add a picture to a Button, for example, the IDE freezes. This happened quite often actually - when adding pictures to the Resource file. Unfortunately, the last time it froze - after forcing it closed and reopening Visual Studio as usual - I now get the following error message (40 times - once for each graphic used in the app):

'Resources' is not a member of 'My'

When I double click on any of those 40 errors, it takes me to the Designer file for the form (for example, frmMain.Designer.vb) to a line such as this one:

Global.RadioTracker.My.Resources.Resources.DataContainer_MoveLastHS

("RadioTracker" is the name of the application, and "DataContainer_MoveLastHS" is the name of a PNG file). It then underlines Global.RadioTracker.My.Resources.Resources with a squiggly blue line to indicate there is a problem with that.
Also, if I type My and then hit the period so that Intellisense kicks in, I can see all everything except the Resources Namespace (I can't remember, but I think it should be there?)

I've tried deleting the \My Project\Resources.resx file, and have even tried restoring not just that file but all resource files (for all forms) from a backup but still not working. Any ideas?
0
Comment
Question by:SETP
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
nekkantisurendra earned 2000 total points
ID: 33683815
Hi check  if this helps..

The resources.resx file was there, but it must have become corrupted in some fashion.

Closed the project.
Deleted the file project_path/My Project/Resources.resx
restarted the project
re-added all the resources
0
 

Author Closing Comment

by:SETP
ID: 33683840
Worked!
0
 

Author Comment

by:SETP
ID: 33683844
Thanks :)
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question