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.

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

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

Thanks PoisonedHeart. I used vbNewLine. It worked.

It's a pleasure of helping!...Goodluck!!

commented: Well done! +4
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.