Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Perplexing Height Properties

Posted on 2000-04-28
5
Medium Priority
?
124 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
[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
  • 2
5 Comments
 
LVL 32

Expert Comment

by:Erick37
ID: 2759671
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 40 total points
ID: 2759684
Actually, the form with the large Command.Height may be using a User defined ScaleMode.
0
 

Author Comment

by:diek_nf
ID: 2759773
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
ID: 2760002
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
ID: 2760225
Erick
Again, quick helpful.

derrick
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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

618 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