0

Dear all,
I need to send a string value along with an 'Enter' keystroke from an active form to a multi-line text box in an inactive form. Tell me a way to do this in VB6.

Thanks.

3
Contributors
4
Replies
7
Views
7 Years
Discussion Span
Last Post by PoisonedHeart
0

If I understand your question correctly, the following -

Private Sub txtString_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then
    Form2.txtString.Text = txtString.Text
End If
End Sub
0

Your question is not that clear...
if you're saying a string value with a newline you can do this:

Form2.txtDestination.Text = "My string value" & vbCrLf

-> if it doesn't work with

vbCrLf

, then try

vbNewline

Edited by PoisonedHeart: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.