WPF Hover over icon in Navigation area to produce tooltip?

Welcome Forums General PowerShell Q&A WPF Hover over icon in Navigation area to produce tooltip?

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
1 year, 11 months ago.

  • Author
    Posts
  • #60411

    Participant
    Points: 1
    Rank: Member

    When I hover over the icon in the navigation bar I need to create a message (like the 'Safely Remove Hardware..' of the USB icon) 'Click here to Exit'. This what I use to create the icon:

    $notifyIcon.Icon = $icon 
    $notifyIcon.BalloonTipIcon  = "Info" 
    $notifyIcon.BalloonTipTitle = "Powershell Search"
    $notifyIcon.BalloonTipText  = "Loading Search GUI. Please wait ..."
    $notifyIcon.Visible = $True 
    $notifyIcon.ShowBalloonTip(50)
    #Create mouse hover box here.
    $notifyIcon.add_Click({                         
        $notifyIcon.Visible = $false
        $form.Close()
        Stop-Process $pid
    })
    

    I know I can use Add-MouseEnter, but I do not want a ToolTip message here.

  • #60414

    Participant
    Points: 21
    Rank: Member

    confused. You want a message but not a tooltip?

    • #60417

      Participant
      Points: 1
      Rank: Member

      Exactly. When you hover over any item in the Navigation area a tooltip appears. I need to reproduce that if possible.

The topic ‘WPF Hover over icon in Navigation area to produce tooltip?’ is closed to new replies.