G
Guest
I am setting the helpstring for all interesting controls to a default in the
form load method. I am then using the SelectedIndexChanged of a combobox to
dynamically change the help displayed using the popup menu, F1, and the
toolltip depending on the currently selected item in the control. I pull
details from the item in the currently selected combobox item so the user can
optionally see more information about the item they are selecting. I have
two questions about this:
1. Why does the tooltip text change, but not the test that is displayed
when I use F1.
2. Is there some way to stop the tooltip from popping up momentarily when
the helpstring is changed in code?
This is a snippet of the code I'm using to change the helpstring.
// Construct the help from the information about the ammo type
// currently selected.
this.helpProvider1.SetHelpString(this.cboHEAT, <A bunch of stuff >)
this.toolTip1.SetToolTip(this.cboHEAT,
helpProvider1.GetHelpString(this.cboHEAT));
form load method. I am then using the SelectedIndexChanged of a combobox to
dynamically change the help displayed using the popup menu, F1, and the
toolltip depending on the currently selected item in the control. I pull
details from the item in the currently selected combobox item so the user can
optionally see more information about the item they are selecting. I have
two questions about this:
1. Why does the tooltip text change, but not the test that is displayed
when I use F1.
2. Is there some way to stop the tooltip from popping up momentarily when
the helpstring is changed in code?
This is a snippet of the code I'm using to change the helpstring.
// Construct the help from the information about the ammo type
// currently selected.
this.helpProvider1.SetHelpString(this.cboHEAT, <A bunch of stuff >)
this.toolTip1.SetToolTip(this.cboHEAT,
helpProvider1.GetHelpString(this.cboHEAT));