Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Resources is not a member of My

Posted on 2010-09-15
3
Medium Priority
?
3,290 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

604 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