vertical alignment of text box or richtext box-VBForums
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
    216

    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
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    87,354

    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.

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    216

    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
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    87,354

    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.

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    216

    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
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    87,354

    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.

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.