OpenFileDialog file = new OpenFileDialog();if (file.ShowDialog()== System.Windows.Forms.DialogResult.OK){ System.IO.FileInfo fileInfo = new System.IO.FileInfo(file.FileName); fileInfo.CreationTime = DateTime.Now;}