CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2003
    Location
    Montreal
    Posts
    4

    Right Justify a Textbox Server Control

    How does one Right Justify text in a TextBox Server Control? The control is reading data from a datatable but it always displays left-justified.

    Thanks in advance

    Ray

  2. #2
    Join Date
    Aug 2000
    Posts
    242
    I'm not sure what you are trying to do but if you what your textbox, labels etc. to be with right to left alignment, you should
    set the dir paramether to rtl instead of ltr.

    vs.net has this parameter in the winform parameters.
    it sets it in the html tag.

    I prefer to see it in the form tag.

    If you want different alignment for each textbox - I don't know how to do that - someone suggested to try css but I didn't try it yet.

    Good luck

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