Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Hi
I want to maintain my chat history with another person.
Details are as follows
Whenever i go to chating on line i want to record my login and logoff time alongwith my ip address,username,and messages sent by me and received by me during that time with their username and ipaddress....under different chat portals.


Let me tell that i have just thought about this and now i m willing to make it and test it first on my machine and then sell it in the market and i sincerely need help on this so any kind of help will be highly appreciated...


Thank You..
Posted

Hi sangaur,

You can do this by following ways,

1) Using Database
Use database to store all the required attributes against unique userid.

2) Using Serialize Object
Crate one class with having all the required attributes as member of the class. Create the object of it and intialize it at runtime with attributes and save it to the file.
 
Share this answer
 
you can use it with data base...and code available for getting ip address are:

IPHostEntry ipEntry = Dns.GetHostByName(st);
                   IPAddress[] addr = ipEntry.AddressList;

                   for (int i = 0; i < addr.Length; i++)
                   {

                       ip = addr[i].ToString();
                       listBox2.Items.Add(addr[i].ToString());
                   }


used to get connected system ip address and bind them into list box
 
Share this answer
 
v2
Comments
RaviRanjanKr 13-Dec-11 16:37pm    
[Edited]Code is wrapped in "pre" tag[/Edited]

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