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.
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
, then try
Thanks PoisonedHeart. I used vbNewLine. It worked.
It's a pleasure of helping!...Goodluck!!