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
Post a Comment