-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can H.NotifyIcon be used in Winform #96
Comments
Yes, sure. There is no separate implementation under WindowsForms, but there is a general implementation suitable for any platform. Here's an example code: |
I tested this method but encountered an error as indicated in the image below. |
It seems that the reason why the ICON attribute must be set is that if it is empty, an error will occur. Is it due to thread settings? Although I started normally, the form did not display. If I manually add this. Show(); Forms can be displayed, but they are not operable. Also, does it seem that each menu item cannot have icon properties set? It would be great if this feature could be added. |
Yes, there may be issues here using TrayIconWithContextMenu. This class assumes that the process does not have a window. Please take a look at this code and try using regular TrayIcon |
Can H.NotifyIcon be used in Winform?
The text was updated successfully, but these errors were encountered: