Article Preview
Buy Now
COLUMN
Ask The Experts
Issue: 2.1 (August/September 2003)
Author: Seth Willits with Thomas Reed
Article Description: No description available.
Article Length (in bytes): 4,286
Starting Page Number: 32
Article Number: 2115
Resource File(s):
2115.zip Updated: 2013-03-10 14:50:56
Related Link(s): None
Excerpt of article text...
Q: How can I set the alignment of an Editfield? I can't to work if I select the text and use .SelAlignment, or even if I simply use the Alignment property in the properties window. How do I do it?
An Editfield must be of the multiline variety in order to support text alignment. An annoying limitation, yes, but if you want a single line editfield, it's really easy to work around.
In the KeyDown event of the field (you should probably make an EditField subclass so you can reuse it in many different projects without having to recreate this for every field in every project) place the following code:
...End of Excerpt. Please purchase the magazine to read the full article.