|
-
May 25th, 2006, 03:00 AM
#1
Thread Starter
Addicted Member
[RESOLVED] SendKeys - Enter
How do you send the key enter?
I thought you did like this:
-
May 25th, 2006, 03:03 AM
#2
Thread Starter
Addicted Member
Re: SendKeys - Enter
or actually.. ..I need to know how to put an enter into a textbox
What should I write instead of ???? you think?
Please help!
-
May 25th, 2006, 03:06 AM
#3
Fanatic Member
Re: SendKeys - Enter
i think it's like: sendkeys{keyascii=13}
WARNING: Excessive coding is dangerous to your health... if symptoms persist insult your doctor...
-
May 25th, 2006, 03:08 AM
#4
Thread Starter
Addicted Member
Re: SendKeys - Enter
i get an error saying: "Invalid character" and points on the first {
-
May 25th, 2006, 03:10 AM
#5
Fanatic Member
WARNING: Excessive coding is dangerous to your health... if symptoms persist insult your doctor...
-
May 25th, 2006, 03:12 AM
#6
Re: SendKeys - Enter
'For New line in the text box assign its multiline property ture
-
May 25th, 2006, 03:12 AM
#7
Thread Starter
Addicted Member
Re: SendKeys - Enter
anyway...can anyone help me with putting an enter into my textbox
Text1 = Text1 + ????
-
May 25th, 2006, 03:17 AM
#8
Fanatic Member
Re: SendKeys - Enter
i dont really understand wat u mean... how to put an enter?
WARNING: Excessive coding is dangerous to your health... if symptoms persist insult your doctor...
-
May 25th, 2006, 03:19 AM
#9
Re: SendKeys - Enter
VB Code:
Private Sub Text1_LostFocus()
Text1.Text = Text1.Text + Chr(13)
SendKeys "~"
Text1.Text = Text1.Text + "It is next line"
End Sub
-
May 25th, 2006, 03:37 AM
#10
Thread Starter
Addicted Member
Re: SendKeys - Enter
thanks shakti5385, that should work!
-
May 25th, 2006, 04:24 AM
#11
Re: [RESOLVED] SendKeys - Enter
typically you use the Carriage Return line feed combination:
VB Code:
Text.Text = "Line 1" & vbCrLf & "Line 2"
make sure multiline property is set to true.
-
May 25th, 2006, 04:32 AM
#12
Thread Starter
Addicted Member
Re: [RESOLVED] SendKeys - Enter
I need help with one more thing...but I'll carry on in a new thread called "Open file in textbox"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|