C#-使用用户控件中的NotifyIcon

时间:2018-07-13 11:25:20

标签: c# winforms

这是令人惊讶的无法在线找到解决方案的地方。

我的主要形式是几个用户控件,在执行某些操作后,我想显示一个通知图标。

显示的有关从其他表单进行操作的示例不适用于用户控件,因为您不能直接引用使用它的表单。

在这种情况下,这个问题有点令人困惑:

Application
- Main Form
--NotifyIcon
--UserControl
---Button that when pressed, show the NotifyIcon
--UserControl
---Button that when pressed, show the NotifyIcon

我正在使用VS2010。

0 个答案:

没有答案