Results 1 to 3 of 3

Thread: Drawing Text on a form (activex control)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313

    Drawing Text on a form (activex control)

    If I wanted to print text on a form (activex control) how would I do that. I remember in vb 6 you could just use the print function, but say I wanted to print different colored text like the words red, blue, green in there respective colors one word after another, how would i do that?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    This draw text with colors and different font style : http://www.vbforums.com/showthread.p...ight=draw+text

  3. #3
    Addicted Member PeteD's Avatar
    Join Date
    Jun 2003
    Location
    Sydney
    Posts
    158
    You can't create ActiveX controls in .net.


    Assuming this code was inside a form:

    Dim br As SolidBrush = New SolidBrush(SystemColors.ActiveCaption)
    Me.CreateGraphics.DrawString("Hello World", Me.Font, br, 10, 10)

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