page 1 of 1
Comments: 5 | Views: 7210
Hello..

I have coded a WinForms marquee scroller program in VB.net/VS2003. Everything works great, but some users have noticed a bug.

When my program is running, IE stops displaying tool tips (TITLE and ALT tags). When my program is closed, they start working again.

I have debugged and went through all the code, and seemed to have found the culprit.

Private Sub tmrTicker_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs) Handles tmrTicker.Elapsed
    lblMessage.Left = lblMessage.Left - 7
End Sub

That line of code causes the tool tips to disappear. It is also the key line of code that causes my marquee to move from right to left. I have tried making the control a label, textbox, rich text box, and they all did the same thing.

Has anyone else experienced this problem? Is it a bug?

I have tested, and Mozilla allows tool tips when it is running (the TITLE tags at lease, Mozilla doesn’t display ALT tags in general). Also, Windows XP still displays them, and Outlook, etc do to. The only program that doesn’t display tool tips is IE.

Any help or advice anyone could give would be greatly appreciated.

Thanks!!
Instead of using System.Timer, have you tried using System.Windows.Forms.Timer ?

It's a lot better for a Windows app, but you will have to change the way you construct the timer.

I think that changing the Left property of the label would stop tooltips functioning, because it would cause a redraw, and the tooltips work in idle time.
I probably didn't explain that too well, but I hope you understand what I mean.
I too have this same issue.
When our OCX is running within IE, tooltips in other browser windows do not work.

We are using a VB5 ocx, we also get the same issue in the IDE.  Our compiled ocx contains multiple controls.

Anyone else ever see this issue?
page 1 of 1
Comments: 5 | Views: 7210