tags:

views:

26

answers:

1

Hi,

i'd like the following code to work (where this. is a MDI child form)

this.HelpButton = true;
this.HelpButtonClicked += HandleHelpButtonClicked;
this.Refresh();       

this code is being called after the mdi child form is displayed.

I wonder if i need to find some way of redrawing the title bar?

David

+2  A: 

From the MSDN docs:

The value of the HelpButton property is ignored if the Maximize or Minimize buttons are shown.

Tony Abrams
meh what a mess! so much for that idea for showing help messages...
GreyCloud
Your best bet is probably to add a toolbar or menu and put a help button on it. Then you can handle the click of that button.
Tony Abrams