![]() |
|
|||||||
| 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 |
|
|||
|
Hi, I'm trying to get the ID of a form control that has the current focus. It seemed to me the AddEvent in combination with the Sender function would do the trick, but it doesn't seem to work when I try the example in the help.
Here's the code: Sub App_Start AddEvent("cbShipName", Click, "FieldGotFocus") End Sub FieldGotFocus Msgbox(Sender) End Sub Anyone have any ideas? Do I have to add a library or something like that? Tks, AB ![]() |
|
|||
|
Hi Erel, thanks, that works perfectly, it's just what I needed.
But, I'm wondering why it doesn't work when I use the event Click instead of GotFocus? When I run it on the desktop and click the field, there's no response ... Also, is there a list of the different event types somewhere? Thanks, Adrian |
![]() |
| 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 basic drawings? | tsteward | Questions & Help Needed | 14 | 08-19-2008 03:40 PM |
| Desktop Videocam image capture library | agraham | Additional Libraries | 6 | 05-25-2008 11:00 AM |
| Screen Capture App | sahoopes | Share Your Creations | 3 | 04-17-2008 08:05 AM |
| Focus | pmu5757 | Questions & Help Needed | 2 | 03-21-2008 06:16 PM |
| Signature capture and label autosize | ohkovar | Questions & Help Needed | 7 | 06-26-2007 10:45 PM |