为C#中所有正在运行的应用程序设置优 [英] Set priority to all running applications in C#

查看:50
本文介绍了为C#中所有正在运行的应用程序设置优的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的专家,



我用C#(Web服务)开发了一个聊天应用程序,它运行正常



我希望当接收者收到消息时,鼠标/键盘不能在所有其他计算机上工作,直到用户对我的应用程序做出响应



它只是喜欢IPMsg ..



我怎样才能实现这个目标,逻辑是什么?



Thanx in提前。

Dear Experts,

I've developed a chat App using C# (Web Services) and it is working properly

I want when receiver Received the message, the mouse/keyboard not working on all other computers till the user response to my app

it is just like the IPMsg..

How can i achieve this, what is the logic?

Thanx in Advance.

推荐答案

请参阅我对该问题的评论。您可以简单地禁用某些客户端的文本输入和发送控件,并允许那些被允许键入消息的人。所有控件都有已启用 IsEnabled 属性。



然而,即使这看起来像是对用户的严重限制(忘记禁用键盘/鼠标)。想象一下,你个人的感受如何?您是否使用现有的着名实例消息应用程序?难道你不认为他们已经比你想要的更好吗?我强烈建议审查你的设计并放弃这个想法。



-SA
Please see my comments to the question. You could simply disable text input and "Send" controls for some clients and enable for those who are allowed to type the messages. All controls have Enabled or IsEnabled properties.

However, even that looks like a severe limitation to the users (forget about disabling keyboard/mouse). Imagine how would you personally feel. Did you work with existing well-known instance messaging application? Don't you think they are already better then what you want? I strongly advice to review your design and abandon this idea.

—SA


这是典型地通过显示一个小的通知窗口来完成,通常在主屏幕的右下角,播放一个小声音。



喜欢这个 [ ^ ] ...
This is typcially done by showing a small notification window, typically in the bottom right corner of the primary screen, and playing a small sound.

Like this[^]...


这篇关于为C#中所有正在运行的应用程序设置优的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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