Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8566573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:41:06+00:00 2026-06-11T17:41:06+00:00

I have a ListView with certain id values. Am using the movemove method to

  • 0

I have a ListView with certain id values. Am using the movemove method to display additional details about this id in a tooltip.

The code was written in VB2003 and it worked perfectly till now. Recently we migrated to VB2008.

Now the tool tip flickers. Details below.

Hope this is an easy one for the .NET big boys. I am a Java EE developer, so I’ve got very little (no) clue about what I’ve done wrong.

Compiler setting:
Target framework .NET 2.0

Code:

Dim m_HoveredItem As ListViewItem

Private Sub cancellationList_MouseMove(ByVal sender As Object, ByVal e As MouseEventArgs) Handles CancellationList.MouseMove
    Dim lvi As ListViewItem = Me.CancellationList.GetItemAt(e.X, e.Y)

    If Not lvi Is m_HoveredItem Then
        m_HoveredItem = lvi
        If lvi Is Nothing Then
            Me.cancelrejectToolTip.SetToolTip(Me.CancellationList, "")
        Else
            Dim orderText As String() = lvi.Text.Split("(")
            Dim orderRef As Integer = CInt(orderText(0).Trim)
            Dim orderIsin As String
            Dim orderDesc As String
            Dim order As AppOrder= New AppOrder(_server, orderRef)
            orderIsin = order.Isin
            orderDesc = order.OrderDescription
            cancelrejectToolTip.SetToolTip(Me.CancellationList, (orderRef.ToString & "/" & orderIsin & "/" & orderDesc))
        End If
    End If
End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:41:07+00:00Added an answer on June 11, 2026 at 5:41 pm

    It looks like the mouse movement keeps moving over the visible tooltip, making it hide, but then the mouse move makes it visible again, and the cycle continues. Easiest way is to just offset the location of the tooltip using the Show method:

    Private Sub cancellationList_MouseMove(ByVal sender As Object, _
                                           ByVal e As MouseEventArgs) _
                                           Handles CancellationList.MouseMove
      Dim lvi As ListViewItem = Me.CancellationList.GetItemAt(e.X, e.Y)
    
      If Not lvi Is m_HoveredItem Then
        m_HoveredItem = lvi
        If lvi Is Nothing Then
          Me.cancelrejectToolTip.Hide(Me.CancelleationList) 
        Else
          Dim orderText As String() = lvi.Text.Split("(")
          Dim orderRef As Integer = CInt(orderText(0).Trim)
          Dim orderIsin As String
          Dim orderDesc As String
          Dim order As AppOrder= New AppOrder(_server, orderRef)
          orderIsin = order.Isin
          orderDesc = order.OrderDescription
    
          cancelrejectToolTip.Show(orderRef.ToString & "/" & orderIsin & "/" & orderDesc, _
                                   Me.Cancellationlist, _
                                   New Point(e.X + 16, e.Y + 16))
        End If
      End If
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have ListView that uses a GridView to display several columns of data. Two
In a C# Winforms Application I have a ListView control. I am using the
I have a rather complex ListView, with variable list item heights. Under certain conditions,
I'm using a ListView control in virtual and OwnerDraw mode to display a number
I have a ListView in my Activity and for each row Im using my
I have a bunch of resource images, and I want to display a certain
I am stuck on this! I have a listView populated by a a cursor.
Couldn't find an answer to this one. I have a WPF ListView control that
I have a listview that is being populated by information from a database using
I have a listview which displays emails with the following layout: email@address.com category //This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.