dropdown textbox

  • Thread starter Thread starter mccoy
  • Start date Start date
M

mccoy

please help

is it possible to a textbox to expand vertically when in focus...as it was
like a dropdown....?? how can i do that??
 
In the text box Got Focus event:
Me.TextBoxName.Height = 1440 * 1.5

Then, in the Lost Focus event:
Me.TextBoxName.Height = 1440 * .5

The 1440 is because the height is measured in a unit called a twip
(twentieth of a point). There are 1440 twips/inch. In the first case you
could just use 2160, and in the second 720, without multiplying, but this
shows you how to use inches as the measurement.
AFAIK the use of twips is the only option; there are no global user-defined
settings for measurment units, at least not in Access 2003.
 
thank you very much bruce M


BruceM said:
In the text box Got Focus event:
Me.TextBoxName.Height = 1440 * 1.5

Then, in the Lost Focus event:
Me.TextBoxName.Height = 1440 * .5

The 1440 is because the height is measured in a unit called a twip
(twentieth of a point). There are 1440 twips/inch. In the first case you
could just use 2160, and in the second 720, without multiplying, but this
shows you how to use inches as the measurement.
AFAIK the use of twips is the only option; there are no global user-defined
settings for measurment units, at least not in Access 2003.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top