Results 1 to 2 of 2

Thread: How can i use AmbientChanged in ocx

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Thessaloniki ,Greece
    Posts
    100
    With this event the program tell me when a property value change.
    But it works when i change the name of ocx control.

    How can i know when my property that i make it change the value
    With this action how can i do something like to notify a value of my program.

  2. #2
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    This event occurs when one of the Ambient properties change (type Ambient. and in the dropdown box you see all the properties).
    For instance, drop a usercontrol on a form, and change the form's font property, the ambientchanged event will occur.

    I'm not sure how to use this, I thought it applies to an ambient property of the direct parent (container) of the control, but when I put the testcontrol on a picturebox and I change the backcolour of a form, this event is also raised.
    Hope this helps

    Crazy D

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