Solved

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

Posted on 1999-01-05
3
111 Views
Last Modified: 2010-05-03
0
Comment
Question by:groone
3 Comments
 

Expert Comment

by:DPickering
Comment Utility
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
Comment Utility
Nope, answer was provided.  Thanks.
0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 0 total points
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

744 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

16 Experts available now in Live!

Get 1:1 Help Now