Open popup form on correct position (1 Viewer)

gstylianou

Registered User.
Local time
Today, 06:53
Joined
Dec 16, 2013
Messages
357
Dear all,

First of all i would like to thank you very much about your help.. Now, i wanted to reply to my friend Ridder about his post #20.

So, the problem about the DLL File persist because i'm trying to open a form witch includes code On Open to find the screen resolution automatically and then to store Width and Height into a relevant fields. The database includes a module about this job...

Find attached my database with the original modules...

Thanks again all of you..
 

Attachments

  • Version 3.4 Module Screen Resolution.accdb
    764 KB · Views: 155

isladogs

MVP / VIP
Local time
Today, 04:53
Joined
Jan 14, 2017
Messages
18,186
Well I don't think you actually answered either of my questions in post #20.

However your database took 2 seconds to fix

In module 1 you had 'remmed out' the second line of the API call:
Code:
Private Declare PtrSafe Function GetSystemMetrics32 Lib "user32" _
[COLOR="Red"]() '        [/COLOR]Alias "GetSystemMetrics" (ByVal nIndex As Long) As Long

It should be

Code:
Private Declare PtrSafe Function GetSystemMetrics32 Lib "user32" _
        Alias "GetSystemMetrics" (ByVal nIndex As Long) As Long

Once that's done, it works (or at least the error has gone ... :)

 

Attachments

  • Capture.PNG
    Capture.PNG
    2.8 KB · Views: 451

gstylianou

Registered User.
Local time
Today, 06:53
Joined
Dec 16, 2013
Messages
357
Well I don't think you actually answered either of my questions in post #20.

However your database took 2 seconds to fix

In module 1 you had 'remmed out' the second line of the API call:
Code:
Private Declare PtrSafe Function GetSystemMetrics32 Lib "user32" _
[COLOR="Red"]() '        [/COLOR]Alias "GetSystemMetrics" (ByVal nIndex As Long) As Long

It should be

Code:
Private Declare PtrSafe Function GetSystemMetrics32 Lib "user32" _
        Alias "GetSystemMetrics" (ByVal nIndex As Long) As Long

Once that's done, it works (or at least the error has gone ... :)



You are right my friend..sorry for you time..!!
thank you very much
 

Users who are viewing this thread

Top Bottom