Results 1 to 2 of 2

Thread: Simple question about ActiveX controls

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2000
    Location
    Peterborough, Cambs, England
    Posts
    176

    Simple question about ActiveX controls

    Hi

    I've created a few activex controls before. I'm now working on a grid control.

    There's one thing that puzzles me.

    How can a make a public property be available only at run-time?

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    VB Code:
    1. Public Property Get SomeProp() As Long
    2.  
    3.     If Not Ambient.UserMode Then Err.Raise -60001,Description:="This property not available until run-time"
    4.  
    5.     SomeProp = mSomeProp
    6.  
    7. End Property

    Something like that.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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