c# - Calling NotifyIcon.ShowBalloonTip() from another class -


i'm developing windows form application in c#. have main form called mainwindow , notifyicon object called notifyicon belongs mainwindow class.

what best way me use notifyicon other classes?

i know that, without instance, can access public static members of class, if set notifyicon public static, stops working on mainwindow.

any ideas?

if it's same application can use

application.openforms 

to retrieve opened forms.

this property returns formcollection, can form instance there. more info here.

if it's not same assembly see this.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -