C# - Calling function from another form
问题 I need a tray notify from another form. ControlPanel.cs (default form, notifyicon here): ... public partial class ControlPanel : Form { public string TrayP { get { return ""; } set { TrayPopup(value, "test");} } public void TrayPopup(string message, string title) { TrayIcon.BalloonTipText = message; TrayIcon.BalloonTipTitle = title; TrayIcon.ShowBalloonTip(1); } Form1.cs (another form): ... public partial class Form1 : Form { public ControlPanel cp; .... private void mouse_Up(object sender,