S
sjoo
Hello everyone,
I knew how to find a handle number of userform or application object.
as following:
------------------------------------------------------------------------------------------------
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Dim h As Long
h = FindWindow(vbNullString, Application.Caption)
If h = 0 Then
MsgBox "Sorry, I could not find that window"
Unload Me
Else
MsgBox "The Handle to that Window is: " & h
End If
------------------------------------------------------------------------------------------------
but I want to know how to find a handle number of an image control on the Userform.
How can I find a handle number of controls on the Userform?
Thanks in advance
I knew how to find a handle number of userform or application object.
as following:
------------------------------------------------------------------------------------------------
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Dim h As Long
h = FindWindow(vbNullString, Application.Caption)
If h = 0 Then
MsgBox "Sorry, I could not find that window"
Unload Me
Else
MsgBox "The Handle to that Window is: " & h
End If
------------------------------------------------------------------------------------------------
but I want to know how to find a handle number of an image control on the Userform.
How can I find a handle number of controls on the Userform?
Thanks in advance