open a specific topic page from chm file

  • Thread starter Thread starter essamce
  • Start date Start date
E

essamce

Guest
hi

i'm opening chm file by this code

private void helpButton_OnClick(object sender, RoutedEventArgs e)
{
string topicFileName = ((Button)sender).Tag.ToString();

System.Windows.Forms.Help.ShowHelp(null, helpFileFullName, "topics files\\topic1-2.html");
}

/////////////////////////////

<Button
Tag="topics files\\topic1-2.html"
Width="100" Height="30"
Click="helpButton_OnClick"/>


and it works well.

but when i'm trying to use the buttom tag like so:

private void helpButton_OnClick(object sender, RoutedEventArgs e)
{
string topicFileName = ((Button)sender).Tag.ToString();

System.Windows.Forms.Help.ShowHelp(null, helpFileFullName, topicFileName);
}


it doesn't work.

any help will be appreciated.

Continue reading...
 
Back
Top