TCP/IP chat Programming with C# socket programming

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abdisha
    New Member
    • Aug 2007
    • 4

    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
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Originally posted by abdisha
    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?

    Comment

    • abdisha
      New Member
      • Aug 2007
      • 4

      #3
      chat programming using C# socket programming

      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????????????

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Originally posted by abdisha
        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#

        Comment

        • abdisha
          New Member
          • Aug 2007
          • 4

          #5
          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

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            As I said in this thread:

            Originally posted by Plater
            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#

            Comment

            • abdisha
              New Member
              • Aug 2007
              • 4

              #7
              Originally posted by abdisha
              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.

              Comment

              Working...