|
-
Aug 10th, 2000, 06:31 AM
#1
Thread Starter
New Member
Hi,
in my app I got 2 forms, on form1 I got 1 Multiline Textbox and form 2 I got Multiline textboxes. The problem I have is that when I edit text in one of the Textboxes on form2 and press enter the program jumps to the textbox on form1.
I've tried set.focus, and that didn't help.
What to do?
-
Aug 10th, 2000, 07:38 AM
#2
Addicted Member
what do you want it to do?
If its to go to another control, you need to set the tab order of that other control to be the next one after your text box.
-
Aug 10th, 2000, 07:42 AM
#3
Thread Starter
New Member
I want it to do an Enter in the textbox I'm standing in on form2.
-
Aug 10th, 2000, 07:52 AM
#4
Addicted Member
Yes, but Enter will fire an event that exits from the text box. Do you want to 'Enter', then stay in the text box?
If so you will have to check for the Enter key (I think its something like if keyascii = vbEnter, but I'm not sure), then do something with the response like setfocus back to your text box.
You have to deal with the 'Event', you cannot just press enter and expect it to know what to do
-
Aug 10th, 2000, 08:27 AM
#5
Thread Starter
New Member
Well, it works fine on form1, so I can't see any reason why it should't work on another form. I've tried to disable form1 and and not have it visible when I load form 2, but it'll jump back to form1 anyway.
Maybe if I delete form1.....
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
|