Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friend i am doing a whiteboard concept i want to know how to send a MouseEventArgs e object to lan as it is not an custom class object please help me

thank you in advance
Posted

1 solution

Then you want to implement WCF[^] or TcpClient[^] and TcpListener[^] to send and receive events based on you needs.

And check out TCP/IP .NET Sockets FAQ[^]
 
Share this answer
 
v2
Comments
mohanrajkiller 10-Nov-11 2:36am    
yes i am doing in tcpclient and tcplistener but i dont know how to send MouseEventArgs object ! i mean how to convert the object of MouseEventArgs into stream !
Kim Togo 10-Nov-11 2:40am    
Do not do that. Create you own protocol, perhaps and XML document, where you will have all the information you need.

You cannot stream/serialize all types of objects.
See Serialization (C# and Visual Basic) and How to serialize an object to XML by using Visual C#
mohanrajkiller 14-Nov-11 1:45am    
i have serialized how to send them over network
Kim Togo 14-Nov-11 3:00am    
Check the examples code in TcpClient.

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