Results 1 to 3 of 3

Thread: Italics

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2005
    Posts
    300

    Italics

    How would i make Text Italic in VB 6.0

    Im assuming would involve a RichTextBox

    Please help
    Last edited by Ricky1; Oct 16th, 2005 at 08:13 AM. Reason: resolved
    Im Learning !!!!

  2. #2
    Addicted Member
    Join Date
    Dec 2004
    Posts
    128

    Re: Italics

    I always used code like
    VB Code:
    1. textbox.Font.Italic or Textbox.font.Bold

    Something to that effect.

  3. #3
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Italics

    If you need to use RichTextBox then you may set Italic font for selected text but other than that you can set font for pretty much every control that suports that property:
    VB Code:
    1. Private Sub Command1_Click()
    2.     Label1.FontItalic = True
    3.     Text1.FontItalic = True
    4.     RichTextBox1.SelItalic = True
    5. End Sub

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