473,378 Members | 1,334 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,378 software developers and data experts.

How to position a pop-up subform in relation to the main form?

sueb
379 256MB
I have a subform that pops up when requested by a button on the main form. Is there a way that I can specify exactly where it displays in relation to the main form?
Dec 1 '10 #1

✓ answered by slenish

They are called Twips. 1/1440 of an inch.

So for example in the first 0 the larger the number it will move the form more to the right side of the screen the smaller the number it will move it more to the left. same with up and down and so on. You will have to play around with it some so you can see how it works.

try doing something like this

DoCmd.MoveSize 10, 300
or
DoCmd.MoveSize 10000, 3000

you will see the differences.

5 6120
slenish
283 100+
Use the Command in the OnOpen of the subForm

DoCmd.MoveSize 0,0,0,0
..............[Right/left],[up/Down],Width,Height
Dec 1 '10 #2
sueb
379 256MB
Great! What are these units? Pixels? Inches?
Dec 1 '10 #3
slenish
283 100+
They are called Twips. 1/1440 of an inch.

So for example in the first 0 the larger the number it will move the form more to the right side of the screen the smaller the number it will move it more to the left. same with up and down and so on. You will have to play around with it some so you can see how it works.

try doing something like this

DoCmd.MoveSize 10, 300
or
DoCmd.MoveSize 10000, 3000

you will see the differences.
Dec 2 '10 #4
sueb
379 256MB
Great! I calculated exactly how big and where I wanted my window to be, and it came out perfectly--thanks!
Dec 2 '10 #5
slenish
283 100+
Your Welcome :D
Dec 2 '10 #6

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

Similar topics

5
by: Andrew Poulos | last post by:
If I'm searching for an occurance of a value in a multi-dimensional array how can I get it's index returned as an array, if found? For example, if: foo = new Array(); foo = , 5, , 9, 10]; ...
15
by: Stig Brautaset | last post by:
Hi group, I'm playing with a little generic linked list/stack library, and have a little problem with the interface of the pop() function. If I used a struct like this it would be simple: ...
19
by: Scott Kelley | last post by:
From a byte containing only 1 bit, I need to find the number representing the bit position. Example: 00010000 = 4 00000001 = 0 Is there a simpler method than looping? Thanks,
0
by: | last post by:
I post a position paper addressing what I feel to be one glaring weakness of the c# language. --S. Lee Odegard ----- The object-oriented programming paradigm incorporates two ideas: the joining...
5
by: ACaunter | last post by:
Hi, I was wondering if there was a way to set the browser window size and position of my asp.net website.. also if i could hide the address bar and buttons... this way i would have more room on...
9
by: jacob navia | last post by:
??? Not that I miss his posts, but somehow I find sad that somebody disappears from view and nobody gives a damm. Anybody knows what happened to him? He had lost is job, and was looking for...
25
by: Nicholas Parsons | last post by:
Howdy Folks, I was just playing around in IDLE at the interactive prompt and typed in dir({}) for the fun of it. I was quite surprised to see a pop method defined there. I mean is that a...
7
by: Scott | last post by:
As said before I'm new to programming, and I need in depth explaination to understand everything the way I want to know it, call it a personality quirk ;p. With pop() you remove the last element...
69
by: Yee.Chuang | last post by:
When I began to learn C, My teacher told me that pointer is the most difficult part of C, it makes me afraid of it. After finishing C program class, I found that all the code I wrote in C contains...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.