CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: ActiveX name

  1. #1
    Join Date
    May 1999
    Posts
    318

    ActiveX name


    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



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: ActiveX name

    in VB each control has a Name property that you can query at runtime.


  3. #3
    Join Date
    May 1999
    Posts
    318

    Re: ActiveX name

    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).



  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: ActiveX name

    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.


  5. #5
    Join Date
    May 1999
    Posts
    318

    Re: ActiveX name

    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.





  6. #6
    Join Date
    May 1999
    Posts
    3,332

    Re: ActiveX name

    OK, quite some misunderstandings.

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

    Sorry for the confusion.


  7. #7
    Join Date
    May 1999
    Posts
    318

    Re: ActiveX name

    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


  8. #8
    Join Date
    Aug 1999
    Posts
    10

    Re: ActiveX name

    I BELIEVE that the AmbientChanged() event will provide this


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured