HelpRequested event
-
Hi, I have a Windows form with a button on it. I have enabled the
HelpButton
property of the form and I have implemented theHelpRequested
event for the button. Everything works fine as long as the button stays enabled. When disabled, the contextual help request simply doesn't work. Is there any workaround for this behaviour? Is it supposed to be by design?
"you can't always get what you want"
-
Hi, I have a Windows form with a button on it. I have enabled the
HelpButton
property of the form and I have implemented theHelpRequested
event for the button. Everything works fine as long as the button stays enabled. When disabled, the contextual help request simply doesn't work. Is there any workaround for this behaviour? Is it supposed to be by design?
"you can't always get what you want"
Bogdan Rechi wrote:
Everything works fine as long as the button stays enabled. When disabled, the contextual help request simply doesn't work.
I tried this and it worked for me. How the help button is disabled ?
-
Bogdan Rechi wrote:
Everything works fine as long as the button stays enabled. When disabled, the contextual help request simply doesn't work.
I tried this and it worked for me. How the help button is disabled ?
-
Thank you for the answer. Just set the
Enabled
property of the button to false...
"la dolce ossessione degli ultimi suoi giorni tristi, Venezia, la vende ai turisti"
Yes it fired the events in disabled mode too. I think you are missing something.
-
Yes it fired the events in disabled mode too. I think you are missing something.
-
I have no idea :confused: Are you using the 2.0 Framework?
"la dolce ossessione degli ultimi suoi giorni tristi, Venezia, la vende ai turisti"
No 1.1 . How come you came to know that it's not working ? Can you show me the
helprequested
event code ?
-
No 1.1 . How come you came to know that it's not working ? Can you show me the
helprequested
event code ?
There is nothing special with the case:
private void button1\_HelpRequested(object sender, HelpEventArgs hlpevent) { MessageBox.Show("ok"); } this.button1.HelpRequested += new System.Windows.Forms.HelpEventHandler(this.button1\_HelpRequested);
I tested it on both of the frameworks (1.1 and 2.0) and still with the same result.
"la dolce ossessione degli ultimi suoi giorni tristi, Venezia, la vende ai turisti"
-
There is nothing special with the case:
private void button1\_HelpRequested(object sender, HelpEventArgs hlpevent) { MessageBox.Show("ok"); } this.button1.HelpRequested += new System.Windows.Forms.HelpEventHandler(this.button1\_HelpRequested);
I tested it on both of the frameworks (1.1 and 2.0) and still with the same result.
"la dolce ossessione degli ultimi suoi giorni tristi, Venezia, la vende ai turisti"
It's firing form's help event even though it's disabled. But it's not firing button's help event when it is disabled. I came to know that this is the default behavior.
-
It's firing form's help event even though it's disabled. But it's not firing button's help event when it is disabled. I came to know that this is the default behavior.