Reding TextBox中的问题 [英] Problem in Reding TextBox

查看:71
本文介绍了Reding TextBox中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个小型聊天程序,该程序通过Winsock将数据发送到服务器.

我已经编写了代码来发送数据,方法是Text1.text

I have a small chat program which send data through winsock to server.

i have written code to send data what is in Text1.text

Dim A As String A = "<message to='" & Room.Text & "@conference.server.com' type='groupchat' id='-1755567193'><body>" & Text1.Text & "</body></message>"  winsock1.senddata A








但是问题是Text1.Text Box是一个多行文本框,并且有许多消息用#For Ex分隔. hye#你好#你好吗#r u ok等.我想通过循环发送一个,但是所有都在单个实例中传递.请帮助我.








but the problem is that Text1.Text Box is A multiline text box and have many Messages separated by # For Ex. hye # Hello # How Are You # r u ok etc. And I want to send one by one through loop but all is being delivered in Single Instance. Please Help me.

推荐答案

使用TextBox.Lines数组分别访问每一行,而不是TextBox.Text.然后,您可以将每个消息作为单独的消息发送.
Use the TextBox.Lines array to access each line separately, rather than TextBox.Text. You can then send each one as a separate message.


这篇关于Reding TextBox中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆