Solved

Application Windows sizing and positioning

Posted on 1999-01-14
3
173 Views
Last Modified: 2013-11-20
I am using MS access 8.0 and want to write a function that will help the forms to be sized irregardless of the windows resolution setup.
ex. If the form is developed in 640 X 480 then it is OK to be used in 800 x 600 but will be smaller. The reverse case would show that form outside the monitor screen size.!!
So according to the resolution all the forms should stretch in size based upon the resolution.
Thanks.
0
Comment
Question by:devtha
3 Comments
 
LVL 2

Accepted Solution

by:
MelissaC earned 50 total points
ID: 1327711
Hi devtha,
I don't know if you're working with MFC, but I suppose so if you post it in this section. Im MFC you can say in the InitInstance of the application class:

// The main window has been initialized, so show and update it.
//
m_pMainWnd->MoveWindow( 0,
                        0,
                        ::GetSystemMetrics(SM_CXSCREEN),
                        ::GetSystemMetrics(SM_CYSCREEN) );
pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->UpdateWindow();


But if you're working with Visual Basic with Access, you first have to declare the function:

Public Declare Function GetSystemMetrics Lib "user32" Alias "GetSystemMetrics" (ByVal nIndex As Long) As Long

If you resize the window, keep in mind that the controls on the window won't resize. You need an extra function to do that.

Hope this helps.
Melissa


0
 
LVL 4

Expert Comment

by:piano_boxer
ID: 1327712
Take a look at the ITCLib free class library at http://devcentral.iftech.com/

The ITCFormManager class can dynamicly move and size controls when the parent dialog is resized.
0
 
LVL 6

Author Comment

by:devtha
ID: 1327713
Melissa Do you have the function for Access and or VB for forms and controls within.?
Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel Use VBA to get user's Mac Address for their computer 5 240
post4 challenge 28 104
wordcount challenge 11 129
Not needed 13 118
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

790 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