Why is the Tooltip Bug Still not Fixed in VS2008?

C

Charles Law

I have to take this personally now. Tooltips have been flakey since the dawn
of .NET, but to still have to put up with a disappearing tooltip in VS 2008
is getting beyond a joke. Tooltips have always done this, so isn't it about
time they were fixed?

I have a tooltip that I assign to a button control on my form. I hover over
the button and up pops the tooltip. I move away and the tooltp fades. I
hover again, and back comes the tooltip. Great.

So now I click the button, and the next time I hover: no tooltip. Never to
be seen again. They did this in 2002, 2003 and 2005. And now 2008.

Does anyone have a workaround, or will I have to roll my own yet again?

Thanks for any help.

Charles
 
F

Family Tree Mike

The steps you outlined work fine for me. The tool tip shows up fine after
the process that the button executes is finished. I'm using VS 2008, C#, on
Vista, hold the mayo...
 
C

Charles Law

Hi Mike

Thanks for the quick reply. I'm using VB in VS2008. I have a module level
variable

Private m_Tooltip As New Tooltip

and then in the Form_Load event:

With m_Tooltip
.SetToolTip(MyButton, "My text.")
.ToolTipTitle = "My Title"
.ToolTipIcon = ToolTipIcon.Info
End With

I wave the mouse over the button and the tooltip appears. When I click the
button I can't get the tooltip again. Even if I click the button and slide
the mouse off, so the click event doesn't fire, I still lose the tooltip.

Charles
 
G

GS

I suspect most of us use a simpler tooltip
just set the mybutton.tootip property to whatever.. no tootiptitle used


I do have another tooptip for detailed info for the purpose of additonal
help at times. nonetheless never seem to have problem your described.
Window Xp, express vs 2005, 2008
 
F

Family Tree Mike

Your code works fine for me. The button click event shows a message box.
While the message box is visible, there are no tooltips on my form, which
makes sense, as the message box is modal. When I dismiss the message box,
the tool tip shows up upon hovering over the button.

Sorry, I don't know what to tell ya!
 
P

Pavel Minaev

Charles Law said:
I have to take this personally now. Tooltips have been flakey since the
dawn of .NET, but to still have to put up with a disappearing tooltip in VS
2008 is getting beyond a joke. Tooltips have always done this, so isn't it
about time they were fixed?

I would suggest you to report it as a bug to VS Connect. For one thing,
you'll find out whether other people can validate it or not. And if they
can, and it annoys a sufficiently large number of people, they'll vote for
its importance, which is more likely to draw Microsoft's attention in the
end.
 
C

Charles Law

It shouldn't, but does it matter that the form on which the button lives is
a modal form of a parent? When I ShowDialog for an instance of my child
form, I pass the parent as the owner.

Charles
 
C

Charles Law

I would, but my System.Windows.Forms.Button doesn't have a Tooltip property.

Charles
 
F

Family Tree Mike

I believe that what GS is describing is the standard process of draging the
tooltip control onto your form. This gives an additional "ToolTip on
ToolTip1" property on each control on your form. I too have never set the
tooltip object inside my form, but rather do it from the properties in the
designer.
 
F

Family Tree Mike

I changed my code in form1 button click to open form two with a button.
Form2 is modal, and the button pops up a message box. The tooltip on form2
works fine. Again this is vb on vista (home edition).

I will shoot the code over to work and run it on XP. I doubt that will
change stuff though.
 
C

Charles Law

I've just tried it that way too, and get the same result. Couldn't be
simpler: drag tooltip onto the form, set the Tooltip on Tooltip1 property of
my button, and run. Tooltip appears and disappears as normal until I click
the button, and then it never appears again.

I'm using VS2008 Pro on XP SP3. In fact, I very recently re-installed XP so
it's pretty clean too, but clearly all is not well in the state of Denmark!

Charles
 
F

Family Tree Mike

Well, I found that I see the same behaviour as you on my XP box at work. It
must be a setting somewhere that Vista changes, as Vista lets the tool tip
show in the manner you desire without any special coding.
 
C

Charles Law

So I'm not going mad then :) ... or perhaps that's a matter of opinion.

I have a workaround, where I remove the button from the tooltip and re-add
it in the MouseEnter event of the button, but this has been a problem with
tooltips in .NET since forever, and I'm getting a little tired of it.

Charles
 
R

rowe_newsgroups

So I'm not going mad then :) ... or perhaps that's a matter of opinion.

I have a workaround, where I remove the button from the tooltip and re-add
it in the MouseEnter event of the button, but this has been a problem with
tooltips in .NET since forever, and I'm getting a little tired of it.

Charles

Sounds to me like it's a problem with XP and not with .NET. I'd say
your best bet is to submit it to Microsoft Connect and see what they
say.

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
 
C

Charles Law

Sounds to me like it's a problem with XP and not with .NET

I think that's a moot point. NET is supposed to work on XP, and in this
respect it doesn't, on at least two systems, as it has now been
corroborated. Arguably it isn't XP that's trying to show the tooltip but the
NET framework.

Either way it is academic really, so long as the Microsoft XP team don't
point me to the NET team, and vice versa ;-)

Charles


So I'm not going mad then :) ... or perhaps that's a matter of opinion.

I have a workaround, where I remove the button from the tooltip and re-add
it in the MouseEnter event of the button, but this has been a problem with
tooltips in .NET since forever, and I'm getting a little tired of it.

Charles

Sounds to me like it's a problem with XP and not with .NET. I'd say
your best bet is to submit it to Microsoft Connect and see what they
say.

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
 

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