if (openDlg.FileName.Length <= 204800) { errorProvider.SetError(textBoxAttachFile, "Maxiumum XX MB"); }
System.IO.FileInfo fileInfo = new System.IO.FileInfo(openDlg.FileName); this.textBoxAttachFile.Text = fileInfo.Length.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)