I am using a TcpClient to communicate with a remote system.
I need to ask is there any data or 'conenction string' that is implicitly sent on TcpClient.Conne ct function?
Because when I connect, the remote system admin sees some incoming data from my app.
Secondly, is there any alternate to send/receive ASCII data instead of TcpClient?
Thanks
User Profile
Collapse
-
data sent on TcpClient.Connect
-
:-| sorry if I forgot to mention exactly, thats why I needed to enlist them for easy acces for marking ... -
ok, could you plz help me with the code? there is an array of 128 boolean values and I want to 'check' the checkboxes having label equal to the 'true' value's index.Leave a comment:
-
I am looping 128 times because I have to check 128 labels. I don't think that one iterator will accurately match both the labels (1 to 128) and the controls.Leave a comment:
-
I want to index them according to label text, to later check them according to label (index). I needed indexing because they were not initialized sequentially....Leave a comment:
-
Sorry, I couldn't get you?
How would I get them indexed according to the label text?...Leave a comment:
-
ok, I did it by using nested loops;
Code:for (int i = 1; i <= 128; i++) { foreach (Control found in this.groupBox1.Controls) { if (found is CheckBox) { if (((CheckBox)found).Text.ToString().Equals(i.ToString())) { m_CheckBoxList.Add((CheckBox)found); break; }
Leave a comment:
-
well, after initializing the checkboxes, I want to add them in the list according to their label, e-g the one labeled "1" should be at first index. To make the label-wise marking efficient ...
There are 128 or more checkboxes on the form.Leave a comment:
-
I m having error on the following line;
Code:typeof(cnt).ToString().....
Code:if (cnt.GetType() == typeof(System.Windows.Forms.CheckBox))
Leave a comment:
-
well, then how can I assign their position on the form? some algo to programmaticall y assign them x.y coords according to form size .. :)...Leave a comment:
-
checkbox array, access through index
Hello,
I have a no. of checkboxes on a c# form application. these are labelled as 1, 2, 3 and so on... I want to programmaticall y make them checked or unchecked according to their label, e-g;
Code:if (i==2) //mark checkbox labelled '2' as checked
-
Yes, and the size of pointer (to whatever) is equal to the size of an int....Leave a comment:
-
-
Loading an XML into DataSet
Hello, I have to load an xml document into a DataSet. Anybody has some code snippet?
Suppose the xml doc is standalone and has a root and some variable number of child nodes. Child nodes have attributes like 'id', 'type' etc ...
I want to to use dataset to get the info of nodes, like type of node having id = ... -
Get some information about the ISO 8583 message composition, of-the-shelf or freely available encoders/decoders don't fit as per requirements all the time.
However if you want to have some idea how it works, try MultiXTpm online ISO 8583 encoder/decoder.
PS: I know my reply is late but hope it will help others :-)Leave a comment:
-
To avoid this logical mistake while making comparison, use constant on the left hand and the variable on the right. i-e if u want to compare x and 2;
Code:if(x == 2) ...
Code:if(2 == x) ...
Code:if(2 = x) ...
Leave a comment:
-
ok, I am done.
Code:public void UpdateText() { Control[] ctrlResponse = isoAgentForm.Controls.Find("textStatus", true); if (!ctrlResponse[0].InvokeRequired) { ctrlResponse[0].Text = statusMsg; } else { ctrlResponse[0].Invoke(new ThreadStart(UpdateText)); } }
Leave a comment:
-
Alex,
Sorry I couldn't get it, do you have an example?
Bassem,
where is IsInvokeRequire d...?Leave a comment:
-
How can I check that the control which I am looking for exists in the 'Controls' list? The foreach loop fails to search by name.Leave a comment:
-
How to access form elements from outside the form class
I want to change the text of a textfield of a c# form object, but from outside that class. How can I do it?
By passing that form field as a reference? How can I pass a reference of that form or textfield to that function if I am running that function in a separate thread?
Thanx
No activity results to display
Show More
Leave a comment: