my current code has a TCPclient connection set up, i want to write some data (a string: UserName) to it.
using outStream as new streamwriter(client.getstream)
outStream.write(UserName)
end using
my problem with this code is that it disposes of the client when it is finished and I need to keep the client open. if I change the using to a dim and do not dispose of the streamwriter, the data does not actually get written and so i want to know whether how i can send the data and keep the client open.