Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I...
Message
De
08/07/2000 02:24:02
 
 
À
07/07/2000 23:20:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00389776
Message ID:
00389792
Vues:
19
Hi Ulises,

1. Try this command ON KEY LABEL F2 myform.thisfield.setfocus where "myform" will be the name of the file that contains the form. (like the way you say "do form myform")

2. In the init event of the form fill up with values for the combo boxes f.e.
     With ThisForm
           .cboControl1.Value = "XXX"
           .cboControl2.Value = "YYY"
     EndWith
Regards
Vijay


>1) Make the cursor (focus) go to a certain field by means of pressing a key >like F2, but only while I am in a given form?
>I tried an ON KEY LABEL F2 thisform.thisfield.setfocus
>but got a message saying thisform can only be used within a method.

>2) I have several combo boxes in a form and I'd like them to display (open) >automatically when getting the focus. I'm looking for an equivalent SendKeys >command in Visual Basic, but can't find any.

>Thanks in advance.
>Ulises.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform