CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Text Allign in singleline text box?

    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


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Text Allign in singleline text box?

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured