Recent content by CodeMonkey

  1. C

    How Can I Synchronize or Lock Multiple Threads in C# to Avoid IOException?

    I have a server set up which can accept multiple clients in different threads. Now the server keeps track of all client activities using a log feature which writes directly to a txt file. But soemtimes I notice when there are a lot of clients requesting there is an IOException becuase another...
  2. C

    How can I make my program find a text file in different directories?

    Hi all, I've had great time here with some very helpful answer. Thank you all. Now my question. I am making a program which takes input from a text file and does somethings with it. Now the directory that text file is on my computer is "C:\input.txt". but sometimes I want to transport my...
  3. C

    How Can a Textbox Be Dynamically Resized with the Form?

    I searched Google and could not find a solution for this. I have a form with a text box and I want to make it so that when I resize the form while the application is running the text box would get resized as well and be "relative" to the size of the form. Any help please?
  4. C

    What are the methods and functions for displaying current time and date in C#?

    Thanks, and sorry. I will learn to Google before asking next time. Cheers.
  5. C

    What are the methods and functions for displaying current time and date in C#?

    What methods and functions can I use to make the program display or return the current time and date in C#? Thanks.
  6. C

    Boost Your C# Game Server: How to Use Multiple Threads for Enhanced Performance

    Hi, thanks, I'm researching about Threadpools now. Meanwhile can anyone please show me a very simple example of how to set up a server which can service multiple clients at the same time. A short example would be great and much appreciated. Please help, I've been trying to do this for a few...
  7. C

    Boost Your C# Game Server: How to Use Multiple Threads for Enhanced Performance

    I'm trying to code a game which can be played in my home server using all the computers there are. I'm trying to set up a server which takes each computer connected and makes a new thread for each to respond to. How do you do that in C#? Some codes as to how multiple clients can connect to a...
  8. C

    Can I Use Big Integers in C# with GMP on Windows?

    I want to use arbitrarily long integers in Csharp, can you tell me how to declare and use this. Please explain the namespace, classes used as I'm very new to this. Thanks.
  9. C

    How to calculate program execution time?

    Sorry I shouldve added that I'm new to this. Can you please tell me which namespace, class and methods to use in Csharp?
  10. C

    How to calculate program execution time?

    I'm using VS and coding in Java, C++ and C#. What are the methods to use to display the time it takes for the program to execute in ms?
Back
Top