Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing current object
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00443057
Message ID:
00443061
Vues:
13
>In Visual Foxpro we have the "THIS" reference to specifiying the current control. For instance if I am in a textbox control I can change the caption by issuing
>
>THIS.CAPTION = "A new caption"
>
>Is there an equivalent feature in VB? Note that I do not want to use the actual name of the control. I want my code to be generic.

Okay I have found me.activecontrol so I can do

Me.ActiveControl.Caption = Me.ActiveControl.Caption + "test"

Is there something more elegant?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform