|
-
May 18th, 2006, 10:05 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] TextBox Next Line
I have a textbox where you enter notes.
How do I change it so instead of when the user presses "Enter or Return" it exits to textbox to move the cursor to the nextline in the textbox.
Example: In the textbox.(Assume the horizontal/vertical lines are the boundries for my textbox)
_______________________
| Notes Go Here! <Enter> |
| <Cursor> |
|______________________|
-
May 18th, 2006, 10:09 AM
#2
Re: TextBox Next Line
your textbox needs the MultiLine Property set to True.
-
May 18th, 2006, 10:09 AM
#3
Re: TextBox Next Line
try this
VB Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = vbkeyenter Then
Me.Text1.Text = Me.Text1.Text & vbCrLf
End If
End Sub
or if it is set to multiline It will just do it automatically
-
May 18th, 2006, 10:12 AM
#4
Member
Re: TextBox Next Line
enable multiline from the textbox
you can do that in the menu at the right, search for multiline and set it true
-
May 18th, 2006, 10:13 AM
#5
Member
Re: TextBox Next Line
lol 3 replays at same time
-
May 18th, 2006, 10:32 AM
#6
Thread Starter
Fanatic Member
Re: TextBox Next Line
Doh! Wrong section this should be in the Database section or VBA - Sorry! - But nice speedy replies.
Hopefully a mod can move this....
-
May 18th, 2006, 10:34 AM
#7
Re: TextBox Next Line
why is this the wrong section? has your question not been answered?
-
May 18th, 2006, 10:35 AM
#8
Re: TextBox Next Line
 Originally Posted by Jumpercables
Doh! Wrong section this should be in the Database section or VBA - Sorry! - But nice speedy replies.
Hopefully a mod can move this....
Where do you want it? DB or VBA?
It looks to me more of a coding issue, so I'm guessing Office Development, but it is your thread, so your call.
-
May 18th, 2006, 10:40 AM
#9
-
May 18th, 2006, 10:59 AM
#10
Thread Starter
Fanatic Member
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
|