Results 1 to 3 of 3

Thread: [RESOLVED] bold & underline at the same time

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2003
    Location
    ohio, usa
    Posts
    719

    Resolved [RESOLVED] bold & underline at the same time

    fontstyle lets you select either underline or bold. is there anyway to get underline & bold??



    Code:
    args.Graphics.DrawString(NewDataGrid.DataGridView1(2, TrIndex).Value.ToString, New Font(drawFont, FontStyle.Bold), Brushes.Black, 235, 48)

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: bold & underline at the same time

    Use "OR", i.e FontStyle.Bold Or FontStyle.Underline

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2003
    Location
    ohio, usa
    Posts
    719

    Re: bold & underline at the same time

    Quote Originally Posted by stanav
    Use "OR", i.e FontStyle.Bold Or FontStyle.Underline

    THANKS!!!

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