Hello,
I've got a couple questions. The first is related to a ScreenTipNeeded Event Handler that I've programmatically added to all of my controls. Essentially, I'm wondering how I can determine what control has invoked the handler using the sender or eventargs variables. In my attempt below, the o variable is null...
void AllControls_ScreenTipNeeded(object sender, ScreenTipNeededEventArgs e) |
{ |
RadOffice2007ScreenTipElement screenTip = new RadOffice2007ScreenTipElement(); |
Control o = sender as Control; |
string sHelp = "This is help text for " + o.Name; |
screenTip.CaptionLabel.Text = string.Empty; |
screenTip.MainTextLabel.Text = sHelp; |
e.Item.ScreenTip = screenTip; |
} |
Second, as you may have guessed, the purpose of this is to provide help text for each of my controls on the screen. I've come up with this method of using the screentips, but I was wondering if there was a better or more standardized way for achieving this sort of thing?
Thanks!
Jeremy