Ravi Kiran
April 1st, 1999, 09:16 PM
Hi,
Anybody tried 'RightAllign'or'CenterAllign' with single line Textbox? There seems to be noway, other than declaring it as multiline & then eating away the 'Enter' key?!
Ravi
Chris Eastwood
April 2nd, 1999, 02:54 AM
Hi Ravi
I had to eat away those enter keys too - but I did find something strange on NT4.
I was playing around making a Number only textbox, and with an API style setting (code's at work so I can't tell you off the top of my head) it actually was right aligned, but not on Win95/98.
I couldn't find anything in the MSDN to account for this behaviour. The textbox/edit control is supposed to have it's (alignment) style set at creation (i.e. CreateWindow).
Let me know if you want to see the code and I'll post it here.
Chris Eastwood
CodeGuru - the website for developers
http://www.codeguru.com/vb