我在按o鍵時遇到了打開幫助文件時出現的問題。幫助文件沒問題。我在表單代碼是這樣的:C#幫助文件未打開
private void login_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F1)
{
Help.ShowHelp(this, @"C:\Users\xristos\Desktop\Smartcity\Smartcityhelp.chm");
}
}
我檢查我的相關問題很多問題,但出於某種原因,我還沒有我想要的結果。提前致謝!
代碼是否輸入if語句?該表單的KeyPreview屬性是否設置爲true? – Equalsk