Sir Morris,
I did try your suggested method of using
\\My Documents\\My Folder as a hard-coded path and as expected (by you) the Direcotry.GetFiles() method did NOT cause problems with the Visual Studio Designer. I became intrigued, reverted all code changes back to my previous version, to use the string returned by
Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase); and could no longer reproduce my intital problem!!!!???
I thought I had reverted the code back to it's original, Visual Studio Designer error generating condition, but I hadn't. I had made the string path variable, previously local to a private method, a class instance variable instead (initialized in the class constructor) and used this.appPath in the .GetFiles() method. Once I reverted the code back one more previous revision, making the variable local to a method, and assigned it to
Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase); did the Visual Studio Designer once again indicate that "URI formats are not supported."
So I thank you very much, for pointing me in the direction of trying
\\My Documents\\. However, can you possibly explain why stoiring the app path in an instance variable (member), rather than a local method variable, made the difference???
I thank you profusely for your invaluable assistance in this matter. And again, my apologies for the frustrated, stress-induced, attitude previously... Thanks for helping me though it. :)