Solved

Resources is not a member of My

Posted on 2010-09-15
3
3,169 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 500 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

724 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