Hi ,
Problem :
Firing Form1_HelpRequested event, when I click message box Help Button. I don’t want to raise that HelpRequested event, when I click message box Help Button.
Step 1: Displaying MessageBox with help button, When I click normal Help Button ( btnHelp_Click).
Private Sub btnHelp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles btnHelp.Click Const SET_DEFAULT_HELP As Integer = 88 MessageBox.Show("MessageBox Help Button", "Raju help", MessageBoxButtons.OKCancel, _ MessageBoxIcon.Warning,MessageBoxDefaultButton.Button1, 0, _ My.Application.Info.DirectoryPath & BACKSLASH & HELPFILE1_NAME,HelpNavigator.TopicId, SET_DEFAULT_HELP.ToString()) End Sub
Step 2: Firing Form1_HelpRequested event, when I click message box Help Button.
Private Sub Form1_HelpRequested (ByVal sender As System.Object, ByVal hlpevent As System.Windows.Forms.HelpEventArgs) Handles MyBase.HelpRequested Const RACK_ERROR_MESSAGES As Integer = 151‘Some code………. Displaying another help file. End Sub
I don’t want to raise that HelpRequested event, when I click message box Help Button. How can I restrict this?.
Problem :
Firing Sub Form1_HelpRequested event, when I click message box Help Button. I don’t want to raise that HelpRequested event, when I click message box Help Button.
Thanks
Raju