Is it possible to access in my activex VB code the name of the control set by the client (not the caption but the name) ?
thanx
Printable View
Is it possible to access in my activex VB code the name of the control set by the client (not the caption but the name) ?
thanx
in VB each control has a Name property that you can query at runtime.
No i dont want to use the name of a control under vb.
I make my own activex control using vb.
I want to access the name of the current instance of my control (the name given by a client for example vb in another project).
as I said "each control", no matter who has writte it.
If you write your own ActiveX control, it will still have a name property.
Yes of course, you can query the value of that property at run-time.
Ok sorry but you still not understand my problem.
In vb you are right you can access the name of the control no matter who wrote it.
But i don't want to access the name of the control in vb (THE CLIENT) but i want to access the name given by vb (THE CLIENT) in my activex code.
In fact i dont want to access the name in the client's side of the control but inside the control code itself.
OK, quite some misunderstandings.
use the Extender.Name property to get the name of your aXcontrol given by the client.
Sorry for the confusion.
Ok thats right
I test it and its ok.
Now could you help with that :
I look at the events of the extender object and dont see any event that warn my control if the name changes.
How could i know the name changes from the client side in my control code?
thanx
I BELIEVE that the AmbientChanged() event will provide this