[英]How do you open an html file when pressing on the help button in the title bar (C# windows forms)
嗨,我正在做一個繪畫程序,並試圖使標題欄中的幫助按鈕打開一個html文件。 按F1時已完成此操作,但按標題欄中的幫助按鈕時需要執行此操作。 有人能幫我嗎?
Visual Studio 2010中的Windows Forms C#
這樣的事情應該起作用。
public Form1()
{
InitializeComponent();
// Min/Max have to be disabled to show "?" button
MinimizeBox = false;
MaximizeBox = false;
HelpButton = true;
HelpButtonClicked += new CancelEventHandler(Form1_HelpButtonClicked);
}
void Form1_HelpButtonClicked(object sender, CancelEventArgs e)
{
Help.ShowHelp(this, @"my help html\chm file");
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.