Search:

Type: Posts; User: Mastermosley

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    3,072

    C# 4 Multithreading Help

    I understand the basics of multithreading and synchronization but I cant wrap my head around the way to implement what I need now. Here is the situation:

    I have a multi-client server utilizing the...
  2. Replies
    2
    Views
    1,314

    C# Some Math

    Okay I am screwing around with web sockets and am trying to negotiate a connection but I have to do some math to generate a proper negotiation.

    draft-ietf-hybi-thewebsocketprotocol-03 - The...
  3. I think what I want to do is create connection...

    I think what I want to do is create connection where the buffer is read before its even sent to the server. Are there any other ways instead of networkstream and streamreader?
  4. No kidding, maybe you should read the question...

    No kidding, maybe you should read the question next time.
  5. telnet server, how to program a backspace

    I have a small, probably poorly coded telnet server. You connect, it shows some ansci art and then you just type to chat and it displays your ip address following your message. The problem I'm having...
  6. Replies
    6
    Views
    3,672

    Well you can do this: XmlDocument doc = new...

    Well you can do this:

    XmlDocument doc = new XmlDocument();
    doc.Load(PathToXML)

    or I can

    XmlDocument doc = new XmlDocument();
    FileStream fs = new FileStream(PathToXML, FileMode.Open,...
  7. Replies
    6
    Views
    3,672

    Your way never really worked, the .value didnt...

    Your way never really worked, the .value didnt exist so I did it like this to load the data into a list.


    XmlDocument doc = new XmlDocument();
    StreamReader stream = new StreamReader(XmlDoc);...
  8. Replies
    6
    Views
    3,672

    Ok I'm testing this right now, I would I program...

    Ok I'm testing this right now, I would I program a loop to check for all <Account username="
    and load them into a textbox or listbox.
  9. Replies
    6
    Views
    3,672

    loading xml data into strings

    I have an xml file with:



    <UserAccounts>
    <Account username="username">
    <password="password"/>
    <banned="no"/>
    <ipbann="no"/>
    <inactive="no"/>
  10. Replies
    13
    Views
    2,801

    No thats what I wanted, I was using the text box...

    No thats what I wanted, I was using the text box to hold multiline status I just forgot to add text but thats not the problem. The problem was i was creating a new form which was invisible, I added a...
  11. Thread: c# array

    by Mastermosley
    Replies
    3
    Views
    2,222

    c# array

    I am building a telnet server and I want to no how to make an array. This array needs to include a socket, streamreader, streamwriter, and the ipaddress, is this possible?
  12. Nevermind I got it, I had to add a public beside...

    Nevermind I got it, I had to add a public beside the static Main();. Also What is the downside of doing this? as you stated above you said its not the best idea.
  13. I dont understand that. I tried the post above...

    I dont understand that. I tried the post above but mainForm doesn't show up when I type Program.________ it should appear there but it doesn't.
  14. Okay so I figured it out. I typed frm.Show()...

    Okay so I figured it out. I typed frm.Show() after I initiate Form1 frm = new Form1 how do I do that, like make reference to the form without actually creating a new one??
  15. Also I just added a...

    Also I just added a MessageBox.Show(txtStatus.Text);

    and it displayed my status so something is in the textbox, but I cant see it...
  16. oh my bad, Its in there on my actually code...

    oh my bad, Its in there on my actually code though and its not working. I read something about Form1 frm = new Form1(); creates a new form and the old one isnt motified or something, dunno if that is...
  17. c# Changing Textbox.Text from different class

    I have the function AddToText which is located in the Form1 Partial Class



    public void AddToText(string text)
    {
    this.txtStatus.Text = this.txtStatus.Text + "\r\n";
    }

    I want to call this...
  18. Replies
    13
    Views
    2,801

    Okay forget the Threading Problem, I think I...

    Okay forget the Threading Problem, I think I found the problem and that lies in the fact that the textbox won't change at all whether or not on a different thread.

    I have the function AddToText...
  19. Replies
    13
    Views
    2,801

    Also when I call the procedure from a diffrent...

    Also when I call the procedure from a diffrent class but the same thread nothing appears in box.
  20. Replies
    13
    Views
    2,801

    I'm not getting any errors, the if invoke...

    I'm not getting any errors, the if invoke required does not seem to be doing anything. When I call the function nothing happens. Also when I push the start button it creates a thread and calls the...
  21. Replies
    13
    Views
    2,801

    This doesn't seem to work. I put a messagebox in...

    This doesn't seem to work. I put a messagebox in the invoke required to see it gets called but it doesn't. I'm on a different class too. I did:


    frmMain frm = new frmMain();...
  22. Replies
    13
    Views
    2,801

    that doesnt make any sense to me. Also Im not...

    that doesnt make any sense to me. Also Im not using a background thread, just a normal one by new Thread(Server.Connection).Start().
  23. Replies
    13
    Views
    2,801

    c# mulithreading

    I'm working on a telnet chat server that starts out with a Windows Form. It has a button which starts the server and a textbox that logs the process, people that login and people that logout, stuff...
Results 1 to 23 of 23