Click here to Skip to main content
16,011,542 members
Home / Discussions / C#
   

C#

 
Questioncarry textbox pointer forward or back Pin
behzadcp31-Mar-09 6:35
professionalbehzadcp31-Mar-09 6:35 
AnswerRe: carry textbox pointer forward or back Pin
0x3c031-Mar-09 6:45
0x3c031-Mar-09 6:45 
GeneralRe: carry textbox pointer forward or back Pin
behzadcp31-Mar-09 7:13
professionalbehzadcp31-Mar-09 7:13 
Questionhow a dataset can transfer from server to client using socket programming in C# Pin
abhishek2931-Mar-09 5:56
abhishek2931-Mar-09 5:56 
AnswerRe: how a dataset can transfer from server to client using socket programming in C# Pin
0x3c031-Mar-09 6:51
0x3c031-Mar-09 6:51 
GeneralRe: how a dataset can transfer from server to client using socket programming in C# Pin
abhishek2931-Mar-09 7:31
abhishek2931-Mar-09 7:31 
GeneralRe: how a dataset can transfer from server to client using socket programming in C# Pin
agent00zelda31-Mar-09 8:22
agent00zelda31-Mar-09 8:22 
GeneralRe: how a dataset can transfer from server to client using socket programming in C# Pin
0x3c031-Mar-09 8:28
0x3c031-Mar-09 8:28 
If I do that, you won't learn from it. The most that you will get out of me is some pseudo-code
Client
Start listening on port x
Set up a background thread. When you receive data, use TcpClient.GetStream to get the NetworkStream
Deserialise the NetworkStream into a DataSet
Close the NetworkStream and TcpClient

Server
Accept an IP address
Try to connect to the IP address, on port x (this is the same port as the client)
When you have connected, simply use the same TcpClient.GetStream method as a data sink. Serialise the DataSet into this Stream
Close the NetworkStream and TcpClient

If you really wanted to, you could make this more complex (status codes, etc), but that's the basic gist of it. If you need code, then search Google for a simple chat application (this gets you the basic infrastructure) and serialisation (this will cover the transfer of the DataSet)
Questionhow to group...... Pin
priyareguri31-Mar-09 5:55
priyareguri31-Mar-09 5:55 
JokeRe: how to group...... PinPopular
musefan31-Mar-09 6:14
musefan31-Mar-09 6:14 
GeneralRe: how to group...... Pin
Yusuf31-Mar-09 6:20
Yusuf31-Mar-09 6:20 
GeneralRe: how to group...... Pin
Fayu31-Mar-09 6:27
Fayu31-Mar-09 6:27 
AnswerRe: how to group...... Pin
DaveyM6931-Mar-09 6:22
professionalDaveyM6931-Mar-09 6:22 
AnswerRe: how to group...... Pin
0x3c031-Mar-09 6:35
0x3c031-Mar-09 6:35 
Question8 queen Pin
Reza S31-Mar-09 5:33
Reza S31-Mar-09 5:33 
AnswerRe: 8 queen PinPopular
musefan31-Mar-09 5:40
musefan31-Mar-09 5:40 
GeneralRe: 8 queen Pin
Colin Angus Mackay31-Mar-09 5:47
Colin Angus Mackay31-Mar-09 5:47 
GeneralRe: 8 queen Pin
Yusuf31-Mar-09 6:21
Yusuf31-Mar-09 6:21 
AnswerRe: 8 queen Pin
harold aptroot31-Mar-09 5:46
harold aptroot31-Mar-09 5:46 
AnswerRe: 8 queen Pin
Luc Pattyn31-Mar-09 5:57
sitebuilderLuc Pattyn31-Mar-09 5:57 
QuestionWhere i wrong??? Pin
VisualLive31-Mar-09 5:16
VisualLive31-Mar-09 5:16 
AnswerRe: Where i wrong??? Pin
Yusuf31-Mar-09 6:24
Yusuf31-Mar-09 6:24 
GeneralRe: Where i wrong??? [modified] Pin
VisualLive31-Mar-09 7:15
VisualLive31-Mar-09 7:15 
GeneralRe: Where i wrong??? Pin
Yusuf31-Mar-09 9:03
Yusuf31-Mar-09 9:03 
GeneralRe: Where i wrong??? Pin
VisualLive31-Mar-09 16:03
VisualLive31-Mar-09 16:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.