Solved

Resources is not a member of My

Posted on 2010-09-15
3
3,081 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
  • 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
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 perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

830 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