Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
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-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated