Results 1 to 3 of 3

Thread: Adding event for code in ocx

  1. #1

    Thread Starter
    Hyperactive Member Steve Stunning's Avatar
    Join Date
    Jul 1999
    Location
    Fairfax, Virginia
    Posts
    314

    Adding event for code in ocx

    Greeting and Salutations!

    I am still new to ocx controls.

    I have created a control that checks how long a computer has been idle. A timer function checks to see if the user has been idle for two minutes.

    At the two minute mark the control would executed some code.. however... The code must be entered by the user.

    So you can see I need to have a way to have code executed that the user desires.

    I found 'Public Event IdleCode()' and this allows me to see it in my form but I do not know how to fire the code from the control itself.

    How can I do this?
    Steve Stunning

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Just use this when you want to fire it:
    VB Code:
    1. RaiseEvent IdleCode

  3. #3

    Thread Starter
    Hyperactive Member Steve Stunning's Avatar
    Join Date
    Jul 1999
    Location
    Fairfax, Virginia
    Posts
    314
    Thank ya!!

    Just what I needed!
    Steve Stunning

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