Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Help with new level start in Unity Pin
mirdana20-May-15 18:52
mirdana20-May-15 18:52 
GeneralRe: C# Help with new level start in Unity Pin
Member 1170715120-May-15 21:24
Member 1170715120-May-15 21:24 
SuggestionRe: C# Help with new level start in Unity Pin
Richard MacCutchan20-May-15 21:32
mveRichard MacCutchan20-May-15 21:32 
GeneralRe: C# Help with new level start in Unity Pin
F-ES Sitecore20-May-15 22:20
professionalF-ES Sitecore20-May-15 22:20 
GeneralRe: C# Help with new level start in Unity Pin
Member 1170715120-May-15 23:46
Member 1170715120-May-15 23:46 
GeneralRe: C# Help with new level start in Unity Pin
Richard MacCutchan21-May-15 1:28
mveRichard MacCutchan21-May-15 1:28 
AnswerRe: C# Help with new level start in Unity Pin
mirdana31-May-15 21:08
mirdana31-May-15 21:08 
QuestionTCP Comm. <Data handling help needed> Pin
Member 1168908120-May-15 16:07
Member 1168908120-May-15 16:07 
I am doing a TCP server & client communication. I would like to display the received data (from client) on the textbox of the server.

When i used txtStatus.AppendText, it works perfectly fine. But when i changed to txtStatus.Text, nothing was shown in the textbox.

I have tried changing to
C#
txtStatus.Text += recMovementData.BaseMoveData.BaseMov.ToString();

but to no avail Frown | :-(

It should work as it is the same as .AppendText but it doesnt.

Can anyone help me with this?

This is my code for my server:

private void btnListen_Click(object sender, EventArgs e)
{
            
            //IPAddress ipaddress = IPAddress.Parse(txtIP1.Text + "." + txtIP2.Text + "." + txtIP3.Text + "." + txtIP4.Text);
            //int portNum = Convert.ToInt32(txtPort.Text);
            IPAddress ipaddress = new IPAddress(new byte[] { 123, 123, 123, 123 });
            int portNum = 8500;
            TCPServerHelper.AcceptConnection(ipaddress, portNum);
            txtStatus.Text = "Connected to remote client!";

            while (true)
            {
                    byte[] bufferReceivedData = TCPServerHelper.Read();
                    MovementData recMovementData = (MovementData)TCPServerHelper.Deserialize(bufferReceivedData);

                    try
                    {
                        //txtStatus.AppendText(recMovementData.BaseMoveData.BaseMov.ToString());
                        txtStatus.Text += recMovementData.BaseMoveData.BaseMov.ToString();
                    }

                    catch
                    { }
}

AnswerRe: TCP Comm. <Data handling help needed> Pin
Richard MacCutchan20-May-15 21:29
mveRichard MacCutchan20-May-15 21:29 
QuestionRetreive blob as text SQLite Pin
DPaul199420-May-15 7:51
DPaul199420-May-15 7:51 
AnswerRe: Retreive blob as text SQLite PinPopular
Richard Deeming20-May-15 8:13
mveRichard Deeming20-May-15 8:13 
GeneralRe: Retreive blob as text SQLite Pin
DPaul199420-May-15 8:20
DPaul199420-May-15 8:20 
Questionpropeties in consuming class Pin
Cianide20-May-15 3:49
Cianide20-May-15 3:49 
AnswerRe: propeties in consuming class Pin
Sascha Lefèvre20-May-15 4:03
professionalSascha Lefèvre20-May-15 4:03 
Questionserver and client Pin
Nick196120-May-15 2:15
Nick196120-May-15 2:15 
AnswerRe: server and client Pin
Richard MacCutchan20-May-15 2:35
mveRichard MacCutchan20-May-15 2:35 
GeneralRe: server and client Pin
Nick196120-May-15 2:48
Nick196120-May-15 2:48 
GeneralRe: server and client Pin
Nick196120-May-15 2:51
Nick196120-May-15 2:51 
GeneralRe: server and client Pin
Richard MacCutchan20-May-15 3:07
mveRichard MacCutchan20-May-15 3:07 
GeneralRe: server and client Pin
Nick196120-May-15 12:22
Nick196120-May-15 12:22 
QuestionIIS stop the webservice application when I migrated 1.1 to 4.5 framework Pin
Narayan Mitra20-May-15 1:19
Narayan Mitra20-May-15 1:19 
Questionhow retrieve image from database Binary Format Pin
Member 1168949020-May-15 0:41
Member 1168949020-May-15 0:41 
AnswerRe: how retrieve image from database Binary Format Pin
Herman<T>.Instance20-May-15 0:52
Herman<T>.Instance20-May-15 0:52 
AnswerRe: how retrieve image from database Binary Format Pin
Sascha Lefèvre20-May-15 0:55
professionalSascha Lefèvre20-May-15 0:55 
Questionclosing an application before it begins Pin
DannyGroff19-May-15 8:30
DannyGroff19-May-15 8:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.