problem setting tooltip to ToolStripStatusLabel on StatusStrip

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
 
Joined
Mar 3, 2009
Messages
1
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top