C#.net中Notifyicon的用法 [英] usage of Notifyicon in C#.net

查看:174
本文介绍了C#.net中Notifyicon的用法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我正在使用C#.net语言.我对在C#.net中使用通知"图标有疑问.我有两个Form.Form 1和Form2.Form1是父Form(名称).Form2是Child Form(名称).我在两种Forms中使用Notify图标.当我最小化Form 1时,自动将Form 2最小化,并且我需要在Notify图标消息中处理哪个表单?我该怎么办?请解决我.
谢谢
Narayanan

Hi Friends,
I am working in C#.net Language. I have doubt in using Notify icon in C#.net. I have Two Form.Form 1 and Form 2. Form 1 is a Parent Form(name).Form 2 is a Child Form(name). I am using Notify icons in two Forms.when i am minimize the Form 1.automatically Form 2 minimize and I need in the Notify icon message which form is processing ? How can i do this?please solve me.
thanks
Narayanan

推荐答案

关于System.Windows.Forms.NotifyIcon的MSDN帮助页面有什么问题?它甚至还包含示例代码,您可以运行它们并查看其工作方式.

此处:
http://msdn.microsoft.com/en-us/library/system. windows.forms.notifyicon.aspx [ ^ ].

您的通知图标仅显示文本(和图标,并且可以具有菜单等).以任何形式显示您想要的任何内容.您需要显示哪种表格处于哪种状态?使用一些与表单标题文本匹配的文本或类似的东西. 正确的代码"正是您认为此处正确的内容.

—SA
What''s wrong with the MSDN help page about System.Windows.Forms.NotifyIcon? It even has the sample code which you can run and see how it works.

Here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.notifyicon.aspx[^].

Your notify icon just shows the text (and Icon, and can have menu, etc.). Show whatever you want from any form. Do you need to show which form is in which state? Use some text matching the form title text or something like that. "Correct code" is just what you think is correct here.

—SA


这篇关于C#.net中Notifyicon的用法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆