Solved

resolution problem in 17 inch monitor

Posted on 2003-11-18
5
230 Views
Last Modified: 2010-05-03
dear friends
i have a problem regarding resolution of the screen.i have make a project .when i install it in 15 inch moniter then it works fine means all the form element are in fixed position.but when i install it in 17 inch monitor then form lay out is compress.
i want when i install it on 17 inch moniter then form covered the monitor and its element placed well manner position.
plz give me coding about this
regard
manish
0
Comment
Question by:manishverma77
5 Comments
 
LVL 26

Expert Comment

by:EDDYKT
ID: 9770965
If you use the same resolution, then I don't see how does it happens

I don't quite understand your question
0
 
LVL 14

Expert Comment

by:ajexpert
ID: 9770998
Hi,
  See if this helpsOption Explicit

Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByRef lpvParam As Any, ByVal fuWinIni As Long) As Long
Private Const SPI_GETWORKAREA = 48
Private Type RECT
    Left As Long
    Top As Long
    Right As Long
    Bottom As Long
End Type
Private rc As RECT

Private Sub Form_Load()
SystemParametersInfo SPI_GETWORKAREA, vbNull, rc, 0
    Me.Move rc.Left * Screen.TwipsPerPixelX, rc.Top * _
            Screen.TwipsPerPixelY, rc.Right * _
            Screen.TwipsPerPixelX, rc.Bottom * _
            Screen.TwipsPerPixelY
End Sub


This is routine to be there in every form

0
 
LVL 49

Expert Comment

by:DanRollins
ID: 10548704
Moderator, my recommended disposition is:

    Save as PAQ -- No Refund.

Dan Rollins -- EE database cleanup volunteer
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 10598877
PAQed - no points refunded (of 250)

CetusMOD
Community Support Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access 2016 VB code 9 102
using Access 8 58
MS Date Picker 64 bit 32 bit issue 12 49
Help with retrieving partial value from a column using VB.NET 4 39
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now