Click to See Complete Forum and Search --> : ActiveX name


eric33
October 5th, 1999, 09:13 AM
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

Lothar Haensler
October 5th, 1999, 09:32 AM
in VB each control has a Name property that you can query at runtime.

eric33
October 5th, 1999, 09:34 AM
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).

Lothar Haensler
October 5th, 1999, 09:38 AM
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.

eric33
October 5th, 1999, 09:48 AM
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.

Lothar Haensler
October 5th, 1999, 09:59 AM
OK, quite some misunderstandings.

use the Extender.Name property to get the name of your aXcontrol given by the client.

Sorry for the confusion.

eric33
October 5th, 1999, 10:56 AM
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

Mike Schoonmaker
July 21st, 2000, 06:56 AM
I BELIEVE that the AmbientChanged() event will provide this