![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
The solution is to catch each keypress as the user types text into the box. If and when the user presses the Enter key, simply call the same subroutine that would be called if the user had clicked on the button.
Code:
sub Textbox1_KeyPress( pKey ) if pKey = Asc( 13 ) then Button1_Click ' 13 = the Enter key, if I remember correctly end sub sub Button1_Click msgbox( "Hello, World!" ) end sub
__________________
PC: Windows XP Pro SP2 / Basic4PPC v6.3 PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6 Last edited by willisgt : 03-21-2008 at 03:18 PM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Capture name of control that has focus | aerohost | Questions & Help Needed | 5 | 06-21-2008 10:31 PM |
| set focus function | gjoisa | Questions & Help Needed | 3 | 05-13-2008 04:53 PM |
| Focus text in textbox! | superbabicka | Questions & Help Needed | 6 | 04-01-2008 11:48 AM |
| Focus | pmu5757 | Basic4ppc Wishlist | 2 | 03-21-2008 05:11 PM |
| listbox focus select using textbox | Dr. Feelgood | Questions & Help Needed | 2 | 02-15-2008 12:25 AM |