API to return screen size, resolutions, and font size 
Author Message
 API to return screen size, resolutions, and font size

Hi every one,

Can any one help me.  I want to be able to resize the User
forms in my Excel VBA Application to the size of the
screen based on screen size and resolution.  I also want
to be able to retrieve system font size.  Does any one
know the right API to use?  I will appreciate any help and
sample code you folks can post here for me and others
faced with the same situation.



Thu, 20 May 2004 06:23:29 GMT  
 API to return screen size, resolutions, and font size
You can return the Screen Size and Width using the
GetSystemMetrics API.  Below is some sample code which I
hope helps.

Public Function ScreenHeightPixels() As Long
   ' Return screen height in pixels.
   ScreenHeightPixels = GetSystemMetrics(SM_CYSCREEN)
End Function

Public Function ScreenWidthPixels() As Long
   ' Return screen width in pixels.
   ScreenWidthPixels = GetSystemMetrics(SM_CXSCREEN)
End Function

Mark Sippitt

Quote:
>-----Original Message-----
>Hi every one,

>Can any one help me.  I want to be able to resize the
User
>forms in my Excel VBA Application to the size of the
>screen based on screen size and resolution.  I also want
>to be able to retrieve system font size.  Does any one
>know the right API to use?  I will appreciate any help
and
>sample code you folks can post here for me and others
>faced with the same situation.
>.



Fri, 21 May 2004 22:18:58 GMT  
 API to return screen size, resolutions, and font size
Carol:

Goto http://www.mvps.org/access/api/api0012.htm.
--
Bruce M. Thompson, Microsoft Access MVP

Quote:
>>No Email, Please. Keep all communications

    within the newsgroups so that all might benefit.<<


Quote:
> Hi every one,

> Can any one help me.  I want to be able to resize the User
> forms in my Excel VBA Application to the size of the
> screen based on screen size and resolution.  I also want
> to be able to retrieve system font size.  Does any one
> know the right API to use?  I will appreciate any help and
> sample code you folks can post here for me and others
> faced with the same situation.



Sat, 22 May 2004 09:47:14 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Fonts size in screen resolution

2. HELP: Screen Resolution & Font Size Problem

3. Font Size in Screen resolution

4. Windows Display Font Sizes Vs. Application Font Sizes

5. Printing a Bitmap with a specific font size On print Font size incorrect

6. Change size, font, and font size of input boxes

7. Size Word window for different monitor sizes and resolutions

8. Font size scren resolution

9. Font size and resolution problem

10. Font Size at Different Resolutions

11. different resolution and font size

12. different resolution and font size

 

 
Powered by phpBB® Forum Software