Im new in WPF and want to make an application that has as a trayicon. I searched for answers on the Internet. Every answer i found was with Notifyicon in Windows Forms, but it didnt work. I use .NET 6.0.
Thanks for your answers :=)
CodePudding user response:
Using NotifyIcon from Windows.Forms is the way to go, even in WPF projects. That is, assuming your project targets the Windows OS.
but it didnt work
What kind of response do you expect? Nobody knows what went wrong. Heck, nobody even knows (except you) what you did and what code you wrote at all, whether right or wrong. So, what can anybody say except "I dunno..."?
CodePudding user response:
I once had this problem once, you can just use the windows forms notifyicon. You need to reference System.Windows.Forms and you can use the NotifyIcon, do remember to give it an icon or else it won't show up.