How do you send the key enter? :(
I thought you did like this:
VB Code:
SendKeys {ENTER}
Printable View
How do you send the key enter? :(
I thought you did like this:
VB Code:
SendKeys {ENTER}
or actually.. :p ..I need to know how to put an enter into a textbox
VB Code:
Text1 = Text1 + ????
What should I write instead of ???? you think?
Please help! :cry:
i think it's like: sendkeys{keyascii=13}
i get an error saying: "Invalid character" and points on the first {
? try either this orVB Code:
sendkeys 13VB Code:
sendkeys (keyascii=13)
'For New line in the text box assign its multiline property ture
anyway...can anyone help me with putting an enter into my textbox
Text1 = Text1 + ????
i dont really understand wat u mean... how to put an enter?
VB Code:
Private Sub Text1_LostFocus() Text1.Text = Text1.Text + Chr(13) SendKeys "~" Text1.Text = Text1.Text + "It is next line" End Sub
thanks shakti5385, that should work!
typically you use the Carriage Return line feed combination:make sure multiline property is set to true.VB Code:
Text.Text = "Line 1" & vbCrLf & "Line 2"
I need help with one more thing...but I'll carry on in a new thread called "Open file in textbox"