>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only