get my monitor width

B

balu

dear friends,
how to get the width of my monitor ?
me.width, me.windowwidth , me.insidewidth . which one plese.
for eg:- i have two cmdcontrols on my form header at exactly 1" from left
and right of my form (of 15" monitor") if i open the same form in 17" monitor
the location of controls differs, hence i want to code it by referencing to
the width of my screen or else i must ask the user him self what is his
monitor width
here just i want to do
me.width = me.windowwidth or me.insidewidth = me.windowwidth
how to make my form = width of the screen
kindly advise.
 
R

Rob Parker

See here:
http://www.mvps.org/access/api/api0012.htm

This API will return either the overall windowsize available to the
application (if it's maximized - via the call
fGetSysStuff("windowsize") ), or the screen resolution (via the call
fGetSysStuff("resolution") ); the first of these take into account any
system toolbars which are present. In either case, you can easily parse the
returned values to give you the horizontal and vertical screen space
available (and convert to inches, if you want). Note that neither of these
calls will return the actual screen space used by the current instance of
your Access application.

There are other code examples that may be useful, such as
http://www.mvps.org/access/forms/frm0042.htm. And browsing the Access Web
site may also help.

HTH,

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top