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 6738387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:21:45+00:00 2026-05-26T11:21:45+00:00

first time poster here! I’m a Senior Computer Science Student and I’m currently developing

  • 0

first time poster here!

I’m a Senior Computer Science Student and I’m currently developing a GUI that plays A board game (othello ) online using telnet.

the pseudo is something like this…

  • click button
  • update GUI
  • recieve telnet input
  • update GUI

rinse and repeat!

the problem is though, the only way i know how get the telnet function to go is by putting it inside the Click event handler, but the GUI won’t update until the whole function is finished. Meaning it updates every two moves instead of one. Is there a way to tell C# ( which I’m new to) to call a new function immediatly after one has finished? specifically on a GUI.

any input is appreciated
Thanks

  • 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-26T11:21:46+00:00Added an answer on May 26, 2026 at 11:21 am

    I’m not sure I understood correctly the problem, but the “receive telnet input” line makes me worry a lot.

    Are you writing this application in a single thread without using any kind of asynchronous TCP/IP communication?

    If the answer is yes, the error is in the architecture you are using.

    You need asynchronous tcp/ip communication, for example, with another thread running in parallel, with asynchronous sockets or with asynchronous streams.

    You cannot stop the GUI waiting for the network, it would be a bad architecture.

    Try to read this simple but complete article on codeproject: http://www.codeproject.com/KB/IP/socketsincs.aspx

    Windows OS uses a thing called “message pump” to handle windows. Everything is a message that is processed by a single thread (your application thread).
    Events are enqueued in the message queue.
    If you stop the execution of the main thread for too long you are stopping the message queue from being processed, and this will stop user input and also painting, since rendering is also a windows message that can be enqueued.

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

Sidebar

Related Questions

long time reader/first time poster here. So I've got a checkbox array that posted
First time poster here. A quick question about setting up a loop here. I
Long term lurker, first time poster here. I have written a class to model
long time reader, first time poster. I’m coming with an issue that many of
first time poster - semi-newb to Rails. Here is my question. Suppose you have
Long time lurker, first time poster. I have a page that can dynamically (with
First time poster, long time lurker :) I have a form setup that posts
I'm first time poster here trying to pick up some Python skills; please be
Long time lurker, first time poster here. My question is: Using C# 2.0, is
First time poster here :). I'm having the following trouble automating Excel 2010 from

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.