获取新GetObject()的句柄

时间:2017-07-11 08:51:09

标签: vba access-vba

我正在尝试从新创建的GetObject()获取句柄。一旦我有了句柄,那么我就可以控制窗口的大小。我该如何处理?

On Error GoTo Errorhandler

    Dim SecCheck As Object

    Set SecCheck = GetObject("C:\VICI\" & Right(TxtFile(CurrentProject.Path 
    _ & "\Aux Files\DPAS\DPAS.txt", 1, ""), 6) 
    _ & "\Fleet Management Data Interface.accdb") <---- new object that I want to get the handle from

    SizeNewWindow SecCheck, 0, 0, 1920, 1080 <---- API for resizing windows

0 个答案:

没有答案