房天下 > 房天下问答 > 业主生活 > 其他
  • 请教代码如下 为什么在text2中没有换行

    请教代码如下 为什么在text2中没有换行Private Sub Text1_KeyPress(KeyAscii As Integer)If KeyAscii = 13 Then Text2.Text = Text2.Text & Chr(13) + Chr(10) Text2.Text = Text2.Text & Text1.Text Text1.SetFocus Text1.Text = ""End IfEnd Sub

    提问者:晨曦中的百合88

    发布于2011-02-10

共1个回答
  • 猫爱上鼠标 丨Lv 1
    LZ的代码并没有问题。只是需要把 text2 的 MultiLine 属性设置为True就可以了。
    +10 2011-02-10 举报
热门人气推荐
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。