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.