Results 1 to 3 of 3

Thread: Balloon on mouse over

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2005
    Posts
    294

    Balloon on mouse over

    I have a download manager that minimizes to system tray, and when you put your mouse over the icon in the tray a balloon pops up.
    How would I do this?

  2. #2
    eltiT resU motsuC Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    New Member
    Join Date
    Apr 2006
    Posts
    8

    Resolved Re: Balloon on mouse over

    Just add this code to your main form code:
    -----------------------------
    VB Code:
    1. Private Declare Function Shell_NotifyIcon Lib "SHELL32" _
    2. Alias "Shell_NotifyIconA" _
    3. (ByVal dwMessage As Long, pnid As NOTIFYICONDATA) As Boolean
    4.      
    5.       Private Type NOTIFYICONDATA
    6.        cbSize As Long
    7.        hwnd As Long
    8.        uId As Long
    9.        uFlags As Long
    10.        uCallBackMessage As Long
    11.        hIcon As Long
    12.        szTip As String * 3
    13.       End Type
    14.  
    15.        Const NIF_MESSAGE = &H1
    16.        Const NIF_ICON = &H2
    17.        Const NIF_TIP = &H4
    18.      
    19. Sub notifyme()
    20. Dim abd As NOTIFYICONDATA
    21.    With abd
    22.       .cbSize = Len(abd)
    23.       .hwnd = Form1.hwnd
    24.       .uId = vbNull
    25.       .uFlags = NIF_ICON Or NIF_TIP Or NIF_MESSAGE
    26.       .uCallBackMessage = Mouse_Move
    27.       .hIcon = Form1.Icon   ' your main form
    28.       .szTip = "HMH"
    29.    End With
    30.    Shell_NotifyIcon NIM_ADD, abd
    31. End Sub
    32.  
    33.  
    34. Private Sub Form_Load()
    35. notifyme
    36. End Sub
    -------------------------------------
    also if u want a menu to pupop when u click on the icon ,tell me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width