
need to right justified numbers in a single line text box
Quote:
> How do you right justified numbers in a single line text box? In the
VB
> Help it says: If the MultiLine property setting of a TextBox control
is
> False, the Alignment property is ignored. But I do not want to set
the
> multiline property to true. Help.
> We are using VB 4.0 16 bit with either windows 3.1 or windows 95.
My method is to set Multiline=True but trap the Enter Key - Ascii 13 -
in the Keypress event of the textbox e.g.
if keyascii = 13 then
keyascii= 0
exit sub
endif
That way the user cannot enter multiline text.
Cheers,
Dave