Solved

Application Windows sizing and positioning

Posted on 1999-01-14
3
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

631 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