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.
This topic is 1 year and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
lontru
Posts: 103
Last visit: Thu Mar 07, 2024 2:00 pm

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 2302 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 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: 103
Last visit: Thu Mar 07, 2024 2:00 pm

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: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 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?
This topic is 1 year and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked