No that's not correct, here is the same code with some commentsOriginally posted by Leroy_Brown
this code looks like it will supply a background to a form not the access window....is that correct?
VB Code:
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hwnd As Long, ByVal hWndChild As Long, ByVal lpszClassName As Any, ByVal lpszWindow As Any) As Long Private m_cFB As New cFormBackground Sub InitBackground() Dim w As Long ' Get a handle to the MDIClient window in the Access Window w = FindWindowEx(Application.hWndAccessApp, 0, "MDIClient", "") With m_cFB .Init w ' Attach the picture you specify to the window handle ' and Tile it. .Tile.FileName = App.Path & "\marb_gif.gif" End With End Sub
In the Visual Basic Editor, goto the Tools/References... Menu, and Select the DLL you Downloaded.




Reply With Quote