resources.GetString Helpppppppppppppppp

  • Thread starter Thread starter perspolis
  • Start date Start date
P

perspolis

Hi
My application worked well,but something wrong with it..
I don't know.
I can't add any form components to it anymore.
resource.GetString("[item].Text") return null but ths [item].Text exist in
..resx file.?????..
 
Is this in Visual Studio?
Some versions of visual studio have a bug. The bug is that NO TYPES can be
defined before forms are defined.
I had this problem with an old project I opened up the other day.
The form looked like this.

namespace SomeNamespace
{
public delegate void MyDelegate(object sender, SomeEventArgs e);

public class Form1:Form
{
// etc
}
}

By removing the definition of MyDelegate from the top and putting it at the
BOTTOM of the .cs file I fixed the resources problem.
Have a check through your .cs files and make sure there are no types defined
before the form type of the .cs.
That might do the trick.

HTH

Simon
 
Back
Top