Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
TitleUse the TypeLib Information library to get a control's properties
KeywordsTypeLib, control name, TLI, InvokeHook
CategoriesControls, API
 
This program includes a reference to the TypeLib Information library TLI (tblinf32.dll).

Call the TLI's InvokeHook function, passing it the control and the name of the property we want.

 
' Call InvokeHook to get the control's property value.
Private Sub cmdGet_Click()
Dim result As Variant

    On Error GoTo GetError
    result = TLI.InvokeHook(Text1, txtPropertyName.Text, _
        INVOKE_PROPERTYGET)
    txtPropertyValue.Text = result
    Exit Sub

GetError:
    MsgBox "Error " & Err.Number & " fetching property." & _
        vbCrLf & Err.Description
    Exit Sub
End Sub
 
 
Copyright © 1997-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated