Link to home
Start Free TrialLog in
Avatar of Narusegawa
Narusegawa

asked on

public Class

I'm sure this is a very easy one for an expert. :)

I've got a class in my program to allow me access to a set of variables globally.

My class is :

      public class myVariables
      {
            private string FileURIFormat;
            private string IniFilePath;
            public string GetFileURIFormat()
            {
                  return this.FileURIFormat;
            }
            public void SetFileURIFormat(string myNewFileURIFormat)
            {
                  this.FileURIFormat = myNewFileURIFormat.Trim();
            }
            public string GetIniFilePath()
            {
                  return this.IniFilePath;
            }
            public void SetIniFilePath(string myNewIniFilePath)
            {
                  this.IniFilePath = myNewIniFilePath.Trim();
            }
      }

However when I run this program itself I get a MissingManifestResourceException.

Any idea's?
Avatar of Jesse Houwing
Jesse Houwing
Flag of Netherlands image

The error must be coming from somewhere else, as I don't see anything int his class that can cause that exception.
Avatar of NipNFriar_Tuck
NipNFriar_Tuck

Is this class in a namespace and are you using System; ?
Avatar of Narusegawa

ASKER

I figured this else. I did some research and it was because my Class was declare before my Form's Class in my main application file. I moved the class to it's own namespace/file and it works.
ASKER CERTIFIED SOLUTION
Avatar of nachiket
nachiket

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial