Results 1 to 5 of 5

Thread: [2008] Richtextbox : Padding and line spacing

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    515

    [2008] Richtextbox : Padding and line spacing

    Can someone please show me how to add a 10pix 'padding' inside, so that text being typed does not start bang from the rtb's left margin.

    Also, please show me how to change line spacing to 1.5 so that text lines are more spaced out ?

    Thanks

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [2008] Richtextbox : Padding and line spacing

    Hi,

    You can try something like this:

    vb Code:
    1. RichtextBox1.SetValue(Paragraph.LineHeightProperty, 10)

    Hope it helps,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    515

    Re: [2008] Richtextbox : Padding and line spacing

    Sorry, but do you have vb.net code ?

  4. #4
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [2008] Richtextbox : Padding and line spacing

    Quote Originally Posted by Xancholy
    Sorry, but do you have vb.net code ?
    Hi,

    This one is for vb.net:

    vb.net Code:
    1. RichTextBox1.SelectionCharOffset = 10

    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    515

    Re: [2008] Richtextbox : Padding and line spacing

    Thanks. Is there anything for line spacing in richtextbox ?

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