M
mp
I just copied some classes in to a new project folder
I renamed all namespaces to the new project namespace (which is probably
wrong but that's another post)
now I get this error (in the subject line)
not sure what i'm doing wrong here(see catch block below)
using System.Windows;
[etc...]
namespace BrowserApp
{
...
//constructor
public cFile(string FileName)
{
_fileName = FileName;
if (File.Exists(_fileName))
{
try
{
StreamReader _fileReader = File.OpenText(_fileName);
}
catch (Exception ex)
{
//MessageBox.Show("Exception " + ex.Message);
<------------ //orignally tried
//when got error tried
System.Windows.MessageBox.Show("Exception " +
ex.Message); <------------still error here
throw;
}
}
thnsks for any tips
mark
I renamed all namespaces to the new project namespace (which is probably
wrong but that's another post)
now I get this error (in the subject line)
not sure what i'm doing wrong here(see catch block below)
using System.Windows;
[etc...]
namespace BrowserApp
{
...
//constructor
public cFile(string FileName)
{
_fileName = FileName;
if (File.Exists(_fileName))
{
try
{
StreamReader _fileReader = File.OpenText(_fileName);
}
catch (Exception ex)
{
//MessageBox.Show("Exception " + ex.Message);
<------------ //orignally tried
//when got error tried
System.Windows.MessageBox.Show("Exception " +
ex.Message); <------------still error here
throw;
}
}
thnsks for any tips
mark