Solved

Perplexing Height Properties

Posted on 2000-04-28
5
115 Views
Last Modified: 2010-05-02
Hi,
First, I only have 10 points. If you can help me fix this they are yours.

I have a multiform project. The height properties on most forms can be set at 300(eg.,command button), but a few of the forms have eg.,command.height = 5837.266. Both are the same actual height. I took over the project from the another programmer, and I cannot seem to figure out where this option(to revert all height to the same variable). Please help.

diek
0
Comment
Question by:diek_nf
  • 3
  • 2
5 Comments
 
LVL 32

Expert Comment

by:Erick37
Comment Utility
Take a look at the ScaleMode property of the forms.  Most likely the form with the Command.Height = 300 is Pixels and the form with Command.Height = 5837 is in Twips ScaleMode.
0
 
LVL 32

Accepted Solution

by:
Erick37 earned 10 total points
Comment Utility
Actually, the form with the large Command.Height may be using a User defined ScaleMode.
0
 

Author Comment

by:diek_nf
Comment Utility
Erick,
Perfect that was exactly it. Do you have any recommendations on using twip or pixel? If you do not it is okay. Thank you.

diek
0
 
LVL 32

Expert Comment

by:Erick37
Comment Utility
Twips is the default scalemode.  The use of other scalemodes depends on what you are doing with the form/control.  e.g. Pixel scalemode is useful when using the Windows API functions, which use pixel dimensions.  A User defined scalemode is often used to make it easier to draw charts or plots.

Unless you need another sclalemode - use Twips.
0
 

Author Comment

by:diek_nf
Comment Utility
Erick
Again, quick helpful.

derrick
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now