problem setting tooltip to ToolStripStatusLabel on StatusStrip

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a statusStrip on a form with some ToolStripStatusLabels - which
function as Previous Record/Next Record, New Record buttons. And instead of
text, I place an image on the ToolStripStatusLabels (prevArrow,
NextArrow...). I wanted to add a tooltip to these labels (that resemble
buttons). But VB2005 is complainng that I can't convert a
ToolStripStatusLabel to a control.

Is it possible to set a tooltip to a StatuStrip ToolStripStatusLabel? How
to do it?

Here is what I tried that doesn't work:

MyToolTip.SetToolTip(CType(tssLPrevBeg, ToolStripStatusLabel), "Go to
beginning of dataset")

Is there a way to do something like this?

Thanks,
Rich
 
ToolStripStatusLabel tooltips

Hi Rich,

that approach did not for me neither.

Simply set ToolTipText property and DO NOT FORGET to set ShowItemToolTips property of STATUSBAR which contains your ToolStripStatusLabel to true. Here is example:

statusBar.ShowItemToolTips = true;
myToolStripStatusLabel.ToolTipText = SupervisorControlBase.LGDatabase.DatabasePath;
myToolStripStatusLabel .AutoToolTip = true;

Hope it helps
Zarko
 
Back
Top