|
|
Title | Use the TypeLib Information library to get a control's properties |
Keywords | TypeLib, control name, TLI, InvokeHook |
Categories | Controls, 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
|
|
|
|
|
|