The NotifyIcon Control - how do i apply the icon?

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
lontru
Posts: 98
Last visit: Fri Jan 27, 2023 3:06 am

The NotifyIcon Control - how do i apply the icon?

Post by lontru »

https://info.sapien.com/index.php/guis/ ... on-control

I use this to set the tooltip text

$tooltip1.SetToolTip($textbox_SoftwareTesting, "Tooltip text")

How do i apply the info icon to above tooltip on the $textbox_SoftwareTesting button
chrome_c0x4fQScc8.png
chrome_c0x4fQScc8.png (14.99 KiB) Viewed 1983 times
jvierra
Posts: 15357
Last visit: Sun Jan 22, 2023 10:28 am
Answers: 27
Has voted: 4 times
Been upvoted: 31 times

Re: The NotifyIcon Control - how do i apply the icon?

Post by jvierra »

Just follow the instructions. The name of the icon is all that is needed.

$tooltip1.ToolTipIcon = 'Error'
User avatar
lontru
Posts: 98
Last visit: Fri Jan 27, 2023 3:06 am

Re: The NotifyIcon Control - how do i apply the icon?

Post by lontru »

so if i want to have different icon i have to create new tooltip*
jvierra
Posts: 15357
Last visit: Sun Jan 22, 2023 10:28 am
Answers: 27
Has voted: 4 times
Been upvoted: 31 times

Re: The NotifyIcon Control - how do i apply the icon?

Post by jvierra »

I thought that was what you were doing. That is the code you posted. How else would you be using a tooltip?
Locked