Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing current object
Message
 
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00443057
Message ID:
00443061
Views:
10
>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform