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




Reply With Quote
