Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3274848
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:04:56+00:00 2026-05-17T19:04:56+00:00

I’m currently following the great tutorial on Geekpedia to create my own Chat Client

  • 0

I’m currently following the great tutorial on Geekpedia to create my own Chat Client and Chat Server.

Connecting the clients to the server works fine but I’m experiencing a few issues with the text being displayed in the chat log.

The first message that is displayed is in the Server window then the incoming connections are monitored:

Image 1

Then I go to connect the Client to the host, all is fine and the appropriate log messages are displayed:

Image 2

Now when I go to send a simple message the Line.Length property shows 3, in particular notice the text:

Image 3

Also, the .Text property contains everything, not just the current line:

alt text

Now looking at the Server and Client window you’ll notice the text has some how copied itself in the wrong places and the previous message is overwritten:

Image 4

If I press the Send button again (With the same string/message) I notice this in the debugger:

Image 5

The text in the Server window does not move further down the box, it seems to overwrite what was previously there. Also the text in the Client window has gone:

Image 6

So if I press the send text button again we see this for the Line property:

Image 7

I’m at a complete loss, I spent a good few hours debugging the code and even after using a diff tool to compare the original code to mine it’s all the same (With exception to certain words in different cases).

If I run the original source code and inspect the same Length property I notice that the count is 1 and the .Text property is only one line:

Image 8

Everything displays correctly:

Image 9

Does anybody have any idea what’s going on? Now I know an option is to simply use the source code itself but I want to “learn by doing” and would like to know why this is happening and how to fix it.

Thanks for your time!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T19:04:57+00:00Added an answer on May 17, 2026 at 7:04 pm

    I am just taking a shot in the dark here, but the SendMessage method in your modified code uses the text from the chatWindow control. The SendMessage in the original code uses the text from txtMessage. I think you are using the text from the wrong control.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am currently running into a problem where an element is coming back from
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I'm trying to create an if statement in PHP that prevents a single post
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.