473,471 Members | 1,684 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

A fairly dense form needs real estate. Don't have it. Want to resize ONE control only

MLH
Me!AddnlOwnrList.Width = 5.1875
Me.Repaint

Have tried the above in the on got focus event code
to make the listbox control wider when its being used.
I tried it in the Enter and Exit event code too.

My control more or less disappears when the Width
property is set when tabbing into the control and does
not come back when tabbing off the control. I've never
before experienced this behavior when resizing controls.

Would like to know if anyone has experienced similar
behavior.
Jan 12 '06 #1
3 1329
On Thu, 12 Jan 2006 10:50:58 -0500, MLH wrote:
Me!AddnlOwnrList.Width = 5.1875
Me.Repaint

Have tried the above in the on got focus event code
to make the listbox control wider when its being used.
I tried it in the Enter and Exit event code too.

My control more or less disappears when the Width
property is set when tabbing into the control and does
not come back when tabbing off the control. I've never
before experienced this behavior when resizing controls.

Would like to know if anyone has experienced similar
behavior.

Are you trying to set the list box width to 5.1875 inches?
Access property sizes, i.e. Width, Top, Left, etc. are all measured
in Twips (1440 per inch).
A width of 5.1875 Twips would be so small as to be un-viewable.
Try:

Me!AddnlOwnrList.Width = 5.1875 * 1440.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jan 12 '06 #2
MLH wrote:
Me!AddnlOwnrList.Width = 5.1875


Width and indeed, all measurements are measured by twips.

FROM THE ACCESS 97 **** HELP *** FILE:

Put your cursor on the "width" part of your above code and simply press
F1 and you'll get a section on:

Height, Width Properties

Look about halfway down the page, under "Setting" and you'll find:

"In Visual Basic, use a numeric expression to set the value of each
property. Values are expressed in twips."

Since you probably won't look at help anyway or claim you don't have it
or can't get the above, "twips" is linked to something curious which
tells you that what you're missing above is (assuming you're using inches):

Me!AddnlOwnrList.Width = 5.1875 * 1440

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Jan 12 '06 #3
MLH
Again, I was struck by the HITB syndrome.
Thanks a bunch, fredg, for helping me yank
it out once more!
Jan 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Salad | last post by:
What do you do when you've designed an app at 800x600 and you now want to make use of higher res?. It's an internal app and won't be distributed to the world. I'm sometimes asked to squeeze in...
1
by: Kevin Myers | last post by:
Hello folks, I am an experienced developer with other languages and applications, but a neophyte when it comes to MS Access forms. Can someone please help get me with a solution for the...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
0
by: 23s | last post by:
Is there any way I can send a vertical value to a form's scroll position? I have a full-screen form that, at launch, contains an empty tab sheet. At run time, the user can dynamically append a...
3
by: Mamatha | last post by:
Hi i have two listview controls on my form one besides another.When i resized the form ,i want to resize those controls automatically along with the form.Where can i set those properties in...
3
by: BrianDH | last post by:
Hi I have a windows form and with init I have a tab control. How can I get the tab control to resize, Min/Max as the windows form is resized? Thanks
8
by: nirdeshonline | last post by:
Hi, I have added a simple listbox in windows form under c# 2.0. It contains a collection of approx 10 strings as list items. Now when i resize the form whole listbox flickers. Please tell me...
2
by: New | last post by:
This may be a dumb question but what is the largest size you would recommend a form to be if it is designed to work in a 1024 x 768 enviroment since some peopl have the taskbar set greater then one...
1
by: Bob Alston | last post by:
I have a system where many subforms are used. Often the size of the subform had to be larger than could be displayed without scrolling. I set the height of the subform to the typical height...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.