Solved

I'm not really sure where this quest. belongs.....

Posted on 1999-01-05
3
116 Views
Last Modified: 2010-05-03
0
Comment
Question by:groone
[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 Comments
 

Expert Comment

by:DPickering
ID: 1454070
Use the TextWidth property of a Form to determine the width in pixels of some text for the Form's current font. For example:

Text1.Width = Form1.TextWidth("Blah")

Unless you're using Courier or some other fixed width font, you'll need to take into consideration the different widths for different strings even though they might be the same number of characters in length. If say the field's length is 5, I'd probably recommend finding the width of say 5 "W" or "M" (ie wide) characters to set the width of your text boxes to ensure that all of the text is visible.

Cheers,
Dave Pickering
0
 
LVL 3

Author Comment

by:groone
ID: 1454071
Nope, answer was provided.  Thanks.
0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 0 total points
ID: 1454072
Since the question is answered. It better to remove this question. It's also zero points so you can do it safely.

To provide a reader of this question with an answer:
use an label control with the autosize property set to true
label1.text = "Hello"
text1.text = label1.text
text1.width = label1.width

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

734 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