private void mnuOpenLog_Click(object sender, EventArgs e) { openFileDialog1.InitialDirectory = Directory.GetParent(Application.UserAppDataPath).FullName + @"\log\"; openFileDialog1.Filter = "Log Files (*.log)|*.log|All Files (*.*)|*.*"; if (openFileDialog1.ShowDialog() == DialogResult.OK) { FrmLogViewer frm = new FrmLogViewer(openFileDialog1.FileName); frm.Show(); } }