Results 1 to 6 of 6

Thread: vertical alignment of text box or richtext box

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    248

    vertical alignment of text box or richtext box

    In text box or richtext box vertical alignment possible? If possible how to do it?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: vertical alignment of text box or richtext box

    I don't know exactly what you mean but the answer is almost certainly no because the vertical spacing of text is controlled by the font.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    248

    Re: vertical alignment of text box or richtext box

    I want the text in the textbox or richtext box to have verical alignment set as required. I saw this link which shows using of VerticalContentAlignment. Can i use this to get vetical alignment in vb.net projects?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: vertical alignment of text box or richtext box

    That link is about WPF, not Windows Forms. Even in WPF I doubt that you can affect the vertical alignment of a RichTextBox because, while I could be wrong, I believe that the WPF RichTextBox is still just a wrapper for the old Win32 control that's also wrapped by the WinForms RTB. The WPF TextBox may well be a different story but I've never looked into it to know.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    248

    Re: vertical alignment of text box or richtext box

    Yes.It was WPF application. But I was thinking like can I use same in Windows Forms applications

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: vertical alignment of text box or richtext box

    I guess that if you wish hard enough then WinForms controls might magically grow a VerticalContentAlignment property.

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