Search results for query: *

  1. O

    getting continuously hexadecimal and converting it to string

    hi Cjard, I found how to do it but I couldn't put it in a loop... Dim pos1 AsInteger pos1 = TextBox3.Text.IndexOf("x") temp1 = (TextBox3.Text.Substring(pos1 + 1, 24)) MessageBox.Show(temp1) Tagid = temp1.Substring(0, 18) MessageBox.Show(Tagid) MAT_NUM = temp1.Substring(18, 6)...
  2. O

    tcpclient responds only once...

    solution Problem1: GUI becomes unresponsive==>>Solution using Application.DoEvents() in the loop Problem2: can not connect again after closing the tcpclient connection ==>>Solution defining tcpclient as: tcpClient = New TcpClient before tcpClient.Connect Sorry i realised that I had...
  3. O

    getting continuously hexadecimal and converting it to string

    Thank you for the info...I am trying to substiring the data to save different parts of the tags in SQL.I was using varables as defined like: For n AsInteger = 0 To TextBox3.Text.Length - 1 Step 32 temp1 = (TextBox3.Text.Substring(n, 32)) Tagid = temp1.Substring(1, 18) mat =...
  4. O

    tcpclient responds only once...

    Hmmm.I got the problem: Dim tcpclient AsNew TcpClient 'I had to add this line... tcpClient.Connect("111.11.11.000", 8080) networkStream = tcpClient.GetStream() MessageBox.Show("connected") Now I can connect again,by clicking button1. BUt now this lines gives me an...
  5. O

    tcpclient responds only once...

    I solved it...I just need to write this code for closing the connection,the other stuff was just trash... networkStream.Close() tcpClient.Close() GUI is responding now. Can
  6. O

    tcpclient responds only once...

    Problem in closing Tcpclient and Connecting again HI everyone, I have a program that connects to an external device by clicking button1,then I can send data through textbox1 and receive response through textbox2 and end the connection by clicking button2. everything works OK.But when I click...
  7. O

    getting continuously hexadecimal and converting it to string

    Hi Cjard, Thank you again for your interest on my problem.About character size I see 30 characters in my textbox on screen but textbox.textlength returns=32 (this was for one block of data,if I receive 1 block in string-like 0x223333abdc,when I receive more than one textboxtextlength increases...
  8. O

    getting continuously hexadecimal and converting it to string

    Hi Cjard, thank you for your reply.The data I am getting is not hexa.Because I saved some some data on some tags and device read them.i could see my data in textbox,the device is adding 0x to the beginning and 4 characters to the end.so my data was as it is between them.like 0x1213245acde...
  9. O

    getting continuously hexadecimal and converting it to string

    Hello eveyone, I am getting continuously hexadecimal data from an external device to my textbox through tcp/ip connection and I have to convert it to string...I tried but I couldn't,i have to make a loop somehow...MY aim is substirng the data and save the useful data in SQL...so I use substring...
  10. O

    tcpclient responds only once...

    GUI freezes while using TCPclient in VB.net now the GUI freezes,I receive the values into textbox2 but I can't exit the programm,'cause I can't use any control on on the form.... Can
  11. O

    dealing with continuous multiple values in textbox

    Hello everyone, maybe Ia m asking something very easy but I couldn't solve it and couldn't find any examples in internet... In my textbox I am receiving 28 charactervalues in this form(2 values in one line): 111111111111111111111111111144444444444444444444444444444...
  12. O

    Vb.net Tcp/ip

    Hi, could you check my thread maybe it gives you an idea,I am new in programming so maybe it can't help you but in my program I have now continuous logic. http://www.vbdotnetforums.com/showthread.php?t=13583 regards, CAn
  13. O

    tcpclient responds only once...

    ok I solved it this way: Dim x AsInteger x = 1 DoWhile x = 1 networkStream.Write(sendBytes, 0, sendBytes.Length) Dim bytes(tcpClient.ReceiveBufferSize) AsByte networkStream.Read(bytes, 0, CInt(tcpClient.ReceiveBufferSize)) ' Output the data received from the host to the textbox. Dim returndata...
  14. O

    tcpclient responds only once...

    Hi everyone, I am writing a client-server connection.The server is an rfid device.When I enter a query from textbox1,I get the respond in textbox2(the tag numbers).And when the conditions change for instance new tags come into the environment the query remains the same but how to change the...
  15. O

    open text file write to file close file

    Hi, sorry,I just realised that it inserts but not in order...like 10010 first ,10011 second....But why,before using replace they were in asc order... regards, Can
  16. O

    open text file write to file close file

    Hmmm, This means I still didn't get it...The command inserts the values but some values are missing in the data table.... cmd1 = New SqlCommand("insert into taginfo(material_number,description) values (" & lineValues(1) & ",'" & lineValues(2).Replace(" ' ", " '' ") & "')", sqlconnection1) do...
  17. O

    open text file write to file close file

    hi again, You are right actually.The error comes from cmd.executenonquery() And you are also right about misunderstanding you:) I tried this: cmd1 = New SqlCommand("insert into taginfo(material_number,description) values (" & lineValues(1) & ",'" & lineValues(2).Replace("'", "''") & "')"...
  18. O

    open text file write to file close file

    Hi, The problem is streamreader is giving syntax error...I don't know if it is also related with my sql command...Before your reply I thought it was only related eith streamreader....The problem is there are many words in my text file like 'london' 'paris' etc...so the text file has to be...
  19. O

    open text file write to file close file

    Hi again, now I get syntax error from streamreader with such words 'London' I mean the words in Apostrophes I get syntax error with these words...Do you have an idea how I can solve it? Thanks again, Can
  20. O

    open text file write to file close file

    Thank you a million,everything works!!!!You are a good teacher by the way:)I am writing my graduate thesis about RFID technology now I have to move on to more difficult stage like getting data from the serial port(rfid device). Again thank you very much for your help and support! Best...
Back
Top