Runtime error 438 
Author Message
 Runtime error 438

Hi
I am trying to call this function but i am getting the
error Runtime error 438. Object doesnt support this
property or method.

Private Declare Function FindWindowEx Lib "User"
Alias "FindWindowExA" _
        (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal
lpsz1 As String, _
        ByVal lpsz2 As String) As Long
Private Declare Function SendMessage Lib "User"
Alias "SendMessageA" _
        (ByVal hwnd As Long, ByVal wMsg As Long, ByVal
wParam As Long, _
        lParam As Any) As Long
Private Const EM_SETREADONLY = &HCF
Public Sub SetReadOnly(ByRef ObjX As Object, ObjBool As
Boolean)
    Dim hwndEdit As Long
    ' Get edit field handle

**** I am getting error on this line. ***
hwndEdit = FindWindowEx(ObjX.hwnd, 0&, vbNullString,
vbNullString)

*****        *******

    If hwndEdit <> 0 Then
        ' Set or remove the ReadOnly flag (ES_ReadOnly)
        SendMessage hwndEdit, EM_SETREADONLY, ObjBool, 0&
    End If
End Sub

I am seeking immediate help..it will be great of u...
Regards
Amar



Tue, 22 Mar 2005 19:22:16 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Runtime Error 438 - What does this mean?

2. **** Runtime Error 438

3. Runtime error 438

4. runtime error 438?

5. Activex Runtime Error: 438

6. Runtime error #438

7. Runtime Error 438 when using VS2005 C++ATL control with VB6 form

8. DoCmd GoToControl... "Runtime Error 438"

9. Runtime Script error 438

10. Runtime 438 object dosenot support this property or method

11. Run-Time Error '438'

12. Need help with error 438!!!

 

 
Powered by phpBB® Forum Software