473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

application window

how can I control the size of application window?
Apr 23 '10 #1
8 1714
ADezii
8,834 Expert 8TB
@sweetsugar
Are you referring to Minimizing/Maximizing the Main Access Window?
Apr 23 '10 #2
mseo
181 100+
hi
first if the your application window is a form:
you can use this code for controlling the size of your form
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Open(Cancel As Integer)
  2.     DoCmd.MoveSize Height = value
  3.     DoCmd.MoveSize Down = value
  4.     DoCmd.MoveSize Width = value
  5. End Sub
Hope this helps
Apr 26 '10 #3
@ADezii
how can I set specific width,hieght for access window . the user can't change the size
Apr 27 '10 #4
ADezii
8,834 Expert 8TB
@sweetsugar
Again, is it the 'Main' Access Window or a Form? Do you simply wish to Minimize/Maximize the 'Main' Access Window/Form, or do you wish to Resize it?
Apr 27 '10 #5
I want to resize Main access window
Apr 28 '10 #6
ADezii
8,834 Expert 8TB
@sweetsugar
You would have to send the Handle of the Main Access Window via Application.hWndAccessApp to at least 1 or 2 API Funcdtions in order to accomplish this.
Apr 28 '10 #7
How can I do this?
Apr 28 '10 #8
ADezii
8,834 Expert 8TB
@sweetsugar
It is a little complicated, but you can search for Help on the SetWindowPos() API Function, which will allow you to precisely size the Main Access Window among other things. The Declaration for this Function is:
Expand|Select|Wrap|Line Numbers
  1. Declare Function SetWindowPos Lib "user32.dll" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long 
P.S. - Be sure to pass Application.hWndAccessApp as the 1st Argument to the Function (Handle to the Access Window).
Apr 28 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
6
by: Eric Robert | last post by:
Hi, I think I've tried everything I can without success. I want to bundle an application that can run unattended or not. That's means it can behave like a normal window application or a...
0
by: Never Best | last post by:
hello, I was curious if someone here could help... I basically want to put a transparent window infront of a fullscreen application and keep drawing text onto the transparent window (basically...
2
by: Uchiha Jax | last post by:
Hi, Recently had an issue with the Audio object from Microsoft.DirectX.AudioVideoPlayback. None of the events were firing from the object during tests (NUnit or Console). Knowing I had it...
10
by: Steve Taylor | last post by:
I am having trouble understanding the ASP.NET application boundaries. Here's my setup: 1. Win2003 Server with IIS 6 and an application defined at the root "SalesNow" (www.salesnow.com). 2. A...
7
by: Paul | last post by:
Hi I have a web application that has a log off selection, just redirects the browser to a form with a label displaying you are loging off. In part of the application I open a new window and was...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
3
by: kill.segfault | last post by:
hi, I am working with a ICA32 citrix client from windows xp, where I am trying to use some automation through citrix client so that I can unmann a tedious file-copy through one of the published...
3
by: Firecore | last post by:
Does anyone know how to use this? I was browsing a few tutorials on the net, and I saw one that shows how to display stuff on the screen. I added a few events. This is my code: #include...
16
by: Ananthu | last post by:
Hi I dont know how to connect mysql with ECLIPSE in RCP application. Please send me the sample code of connecting mysql sever with ECLIPSE in RCP application. Coding Part: RCP Application...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.