Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Brilliant...

I have simple windows application send and receive messages using C#, so i want to notify and count the number of the unread messages like facebook using tab control and tile Notification in c#.

thank you so much.

best regards,

Radumix.
Posted
Comments
Kornfeld Eliyahu Peter 4-Nov-14 2:27am    
http://mattgemmell.com/what-have-you-tried/
syed shanu 4-Nov-14 2:32am    
How do you send and receive your messages,How to find the unread messages from your application with out knowing this its difficult to help you.
Provide more details of your application and your need.
RadumixMatsad 4-Nov-14 3:26am    
Okay brod. the application its running, using datagridview control and tab control. tab control contain New Message and History, in new message tab there's a datagridview with 1 column named order which is the data returned every 5 minutes. So i want to count the number of rows from datagridview inside the new message tab, and it will display as notification on "new message tab" anywhere on "new message tab" from the right or from the left. by the way thank.
ZurdoDev 4-Nov-14 7:41am    
1. Reply to comments so that the user is notified.
2. Where are you stuck?
syed shanu 5-Nov-14 3:18am    
I hope all the data will be display from the database.When ever there is new record (Message) inserted you might use two more column as MessageStatus and user ID and default you can set the MessageStatus as fales and add the userID.
When ever user login and click the new message update the record with user id and messageStatus to True which means the user has readed the message.In your main form you can use timer and always check and refresh the data from the message table somethings like select * messagetable where messagestatus="false" which will display all the unread records.

hope this will help you.
When the user click the message

1 solution

The first thing to do would be to create a Database for each and every message to be stored in. Once done, you can easily count the messages using a condition (message_unread). Tile Notifications are for the Windows applications, your server would have nothing to do with it.
 
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