Answer the question
In order to leave comments, you need to log in
C#. How to call a balloon from the tray?
How to call an alert window from the tray in C#?
And does the program have to be minimized to tray?
Here is an example from punto:
Answer the question
In order to leave comments, you need to log in
Place a NotifyIcon component on the form if you are using a Windows Forms project .
To display a notification, use the NotifyIcon.ShowBalloonTip method :
// необходимо обязательно указать иконку
// иначе уведомление не будет отображаться
// можно использовать иконку формы
notifyIcon1.Icon = this.Icon;
// показываем уведомление
notifyIcon1.ShowBalloonTip(
10000,
"Новый ответ",
"Поступил новый ответ на ваш вопрос на Toster.ru",
ToolTipIcon.Info
);
// или с текстом по умолчанию (см. BalloonTipTitle, BalloonTipText)
// notifyIcon1.ShowBalloonTip(10000);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question