473,387 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

TCP/IP chat Programming with C# socket programming

i would like ask u a quostion that how can
create wnidow application simple chat program
using loopback Client and server progarm
pls say some thing
Aug 2 '07 #1
6 6631
Plater
7,872 Expert 4TB
pls say some thing
"some thing"

That's a pretty broad question, how far have you gotten on it?
Do you have your communication protocol decided on?
Are you going to have it be one-on-one or have a server that many clients can connect to?
Aug 2 '07 #2
i have working with Server and Client code.
but i got a problem that when i do run the code it says
cross thread not valid what can do????????????
Aug 8 '07 #3
Plater
7,872 Expert 4TB
i have working with Server and Client code.
but i got a problem that when i do run the code it says
cross thread not valid what can do????????????
I see you've made it farther then last time

If you are in one thread and are trying to interact with another thread's objects, it's not a very good plan. I can only assume that something like this is happening.
I recomend looking at the MSDN's help articles about using Threads in .Net/C#
Aug 8 '07 #4
Hello there
i have chat code using C# window application but i have a problem with this
code. the server code has many functions one of those function is display
client username and message in the server list box but when the code runing
it crate error message like this "cross thread operation is invalid"
how can i solve this problem
thanks inadvance
Aug 9 '07 #5
Plater
7,872 Expert 4TB
As I said in this thread:

If you are in one thread and are trying to interact with another thread's objects, it's not a very good plan. I can only assume that something like this is happening.
I recomend looking at the MSDN's help articles about using Threads in .Net/C#
Aug 9 '07 #6
i have working with Server and Client code.
but i got a problem that when i do run the code it says Cross-thread operation not valid: Control 'logBox' accessed from a thread other than the thread it was created on.
i have working with Server and Client code.
Aug 16 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ali | last post by:
I'm trying to write a really basic chat program that allows 2 client programs to send messages to each other via a server. I've managed to write the code so that both clients can connect to the...
0
by: Charles Pratt | last post by:
I'm having trouble with a network chat based server I'm working on in C#, It works find during the reads, but as soon as I start sending back data my reads from that point on are corrupted. If...
1
by: c_eagle | last post by:
i am building a chat server in c using sockets.i have used fork to do non-blocking read and write between the client and the server.but i dont know how to accept multiple clients and relay messages...
5
by: bizt | last post by:
Hi, I have been asked by my manager to look into the possiblily of setting up an online chat system for the external website. We run an Apache server with PHP (hence the reason Im posting here)...
1
by: ranabhavin2 | last post by:
Hi, I have made database chat application in asp.net. now suppose I have two chat window at different computer. If user1 writing something to user2 then at the bottom there shuold be message...
1
by: Sean | last post by:
Hi, I am trying to write a simple chat/text messaging program but I am having some problems. I am a rookie when it comes to socket programming so I am not sure if I am doing the write thing or...
1
by: linksterman | last post by:
I am making this pretty basic chat project, and I found this echo server on the internet and decided to modify it my needs (much of the methods and fields are the same). Basically what my program...
3
by: click2ranjan | last post by:
Hi friend i am new in network programming and trying to develop a chat messenger. for this most of the portion has completed but still i have some problem with file sending to anothe user, files...
3
by: Saman.Jahanpour | last post by:
Hi my friends, I want to implement a CHAT section on my website and I do not know anything about it. I want help from someone or some people here to tell me what I need to know and what I need...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.