cjja,

you cannot directly assign like this

Code:
   public string strFileName = fDialog.FileName;
when you do this.. the fDialog.FileName does not contain the path .. it might have NULL value..
you just declare strFileName without initializing... and later in the when the user clicks on OK button then you will get the required path...