ListView: Displaying a tooltip without mouse hovering

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Faraz Azhar (itz_faraz_at_hotmail.com)
Date: 03/16/04


Date: 15 Mar 2004 23:14:08 -0800

Hello,

I use the following code to display a tooltip on a textbox. This is
like a 'static' tooltip. It appears without mousehovering and we can
make it appear whenever we want:

Public Sub ShowBalloonTip(hwndEdit As Long, szTitle As String, szText
As String, tipIcon As EditTipIcon)
    
    Dim ebtTip As EDITBALLOONTIP
    
    With ebtTip
        .cbStruct = Len(ebtTip)
        .pszText = StrPtr(szText)
        .pszTitle = StrPtr(szTitle)
        .ttiIcon = tipIcon
    End With
    
    SendMessage hwndEdit, EM_SHOWBALLOONTIP, 0&, ebtTip
    
End Sub

But of course, this is for textbox. I saw a very similar thing used by
a program on listview. It was the same kind of balloon tip ( PS. i
know how to make the usual balloon tips when mouse hovers something )
as used by a textbox. How to do it?

- Faraz Azhar



Relevant Pages

  • Textbox Tooltip altered by javascript is not seen by code to save it
    ... I am changing the Text on the page by Typing it in, but the ToolTip is being ... changed from another Textbox thru javascript as a memo to the first TextBox, ... it is still seeing the original Evaluation and not the new altered ToolTip ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Apply CommentBox to objects?
    ... CreateToolTipLabel TextBox1, "ToolTip Label" ... Dim oToolTipLbl As OLEObject ... Here is an example of how to call it, assuming that the textbox ...
    (microsoft.public.excel.programming)
  • ToolTip selbst aktivieren
    ... Ich mochte gerne ein ToolTip über einer TextBox anzeigen. ... dann nach seiner Delay-Zeit wieder verschinden. ... Show-Methode oder so, die es aber leider nicht hat. ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Tooltip and Errorprovider problem
    ... Tooltip will be set with TextBox content and Errorprovider ... The Button is actually pop itself (myForm). ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Tooltip and Errorprovider problem
    ... If I set a tooltip on a control while the mouse is on the same control and ... the form goes back the form that called the showdialog. ... > Tooltip will be set with TextBox content and Errorprovider ...
    (microsoft.public.dotnet.languages.vb)