private void MainForm_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F1) { try { string filePath = "NMMU Residence System Help.chm"; System.Windows.Forms.Help.ShowHelp(null, filePath); } catch { MessageBox.Show("Error displaying help", " ", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)