Questions tagged [notifyicon]

Specifies a component that creates an icon in the notification area. This class cannot be inherited

Specifies a component that creates an icon in the notification area. This class cannot be inherited

361 questions
0
votes
1 answer

i written a winforms application in VB .NET in visual studio 2010

I have to run a thread create in the code. In the form1 i have a button that run the new separate thread for elaborate some data, so i need it for not freeze the form. I have inizialized thread: dim th as thread = new thread (addressof…
0
votes
1 answer

How to remove checked margin in tray icon context menu

I've created this little script running in tray. I've noticed that contex menu text is not placed completely to the left. After a little investigation I found out that it is because there is a space left for .checked state indicator. I found out…
Nawad-sama
  • 151
  • 2
  • 12
0
votes
1 answer

notifyIcon in Microsoft.NET.Sdk.Web

i have WASM app to request api to localhost for manage file and folder ... beside this i have another web application that handle WASM request .... now I want add notifyIcon to localhost web application so user can see config and port usage for it…
abbas-h
  • 392
  • 1
  • 4
  • 18
0
votes
1 answer

Tray Icon not showing up

I have added a tray icon to my program that should show the up and have buttons for toggling certain functionality. However, the tray icon is not showing up. I have checked that System.Windows.Forms is included, that the Application.Run() method is…
S. C.
  • 110
  • 1
  • 13
0
votes
0 answers

WFA - NotifyIcon On BalloonTipClicked, a new app window is opening instead of the current

I have a NotifyIcon for my app and there are BalloonTip events that tell the user of an updated item within the app. I am seeing when users are clicking the BalloonTip, it is running a new instance of the app and it appears that the new instance is…
0
votes
1 answer

Updating object at program level within class

I have a program that runs in the system tray that communicates with our server and "syncs" data based on a users preferenced jobs. The idea is similar to Dropbox, but for our surveying software called 12d Synergy. The idea is that users can sync…
0
votes
0 answers

WPF Registered as Startup program but could not find icon file

I registered some WPF from as startup like this Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true); Assembly curAssembly =…
JY Lee
  • 45
  • 6
0
votes
0 answers

C# notifyIcon: The type 'Icon' is defined in an assembly that is not referenced

When adding a notifyIcon from Toolbox in Visual Studio and assigning an icon to it, I get the following error with the line "this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));" when compiling: CS0012 "The type…
MichaSch
  • 29
  • 5
0
votes
1 answer

WindowsState Minimized is not working when NotifyIcon is used

I'm trying to show NotifyIcon when form is closed. It closed but it also closed when I click Minimized button. Here is my code. private void Home_Resize(object sender, EventArgs e) { if (FormWindowState.Minimized ==…
novasaint
  • 700
  • 8
  • 13
0
votes
1 answer

Change notifyIcon1 from resources

this code recall a icon from external file: notifyIcon1.Icon = new Icon("notifier.ico"); if possible change the icon from resources file? notifyIcon1.Icon = new Icon(Properties.Resources.ResourceManager.icon2);
Federico
  • 3
  • 5
0
votes
2 answers

How to add event handler for MouseDown event?

Adding the event handler click event was pretty straightforward when I followed the documentation at Microsofts web pages. Unfortunately there was no example including the MouseDown event. I've tried quite a few combinations but I must be using the…
Mogash
  • 130
  • 1
  • 7
0
votes
2 answers

Hide dummy taskbar icon for notification icon context menu

I have a simple .Net 5.0 WinForm form which is automatically hidden after the application started: private void form_Shown (object sender, EventArgs e) { Hide (); } It only creates a notify icon. This notify icon has a context menu strip that…
André
  • 405
  • 5
  • 16
0
votes
1 answer

C# toggle window by clicking NotifyIcon (taskbar icon)

My C# application consists of a taskbar icon (NotifyIcon) and an overhead window initially hidden. I want the user to be able to toggle the window visibility by clicking on the NotifyIcon (left, single click). Also the window is being hidden when…
David
  • 3,392
  • 3
  • 36
  • 47
0
votes
1 answer

TaskSheduler is giving 0xE0434352 when application has NotifyIcon

I am making c# wpf application which I need to run at windows startup as aministrator. I am using tasksheduler for this purpose. My application was running fine but recently I added NotifyIcon (from System.Windows.Forms namespace). My application…
Abu Bakar
  • 42
  • 5
0
votes
1 answer

How to add a NotifyIcon to an ATL out-of-process server

How can I have a Windows tray notification icon for an out-of-process COM server, developed using VS2019? So far I have tried just adding one with Shell_NotifyIconA(NIM_ADD, &n); as per the MSDN documentation. .However if I set the…
M.M
  • 138,810
  • 21
  • 208
  • 365