Click here to Skip to main content
15,901,666 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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.
Posted
Comments
Rockstar_ 4-Jun-13 8:15am    
You mean u want to find , whether the user is active or idle?
[no name] 4-Jun-13 8:36am    
no. i just want , if user have opened some other windows, when message came then chat Window will show on the top of the other windows that user can see the new message is come.... now if i send a msg.. and receiver doing something else... receiver don't know about the message till by chance he/she minimize all the other windows...
Sergey Alexandrovich Kryukov 4-Jun-13 8:46am    
Mouse/Keyboard not working? All computers? You cannot be serious. Just think about it.
—SA
[no name] 4-Jun-13 12:07pm    
Mouse/Keyboard not working means... just like MsgBox.show in WinForm.. it displays whatever we r doing but it display on front... something like that i am saying
Sergey Alexandrovich Kryukov 4-Jun-13 12:25pm    
You cannot give me an example where it's not working. They work all the time. Trying to limit it would be a huge abuse. You need to think about your design, not those illegalities... :-)
—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
 
Share this answer
 
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[^]...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900