Results 1 to 4 of 4

Thread: Combining font styles?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2009
    Posts
    130

    Combining font styles?

    How do I combine fontstyle.bold with fontstyle.Italic? I tried simply adding them together but no go.

    Code:
    Dim MyFont as New Font ("courier new",12,FontStyle.Bold + FontStyle.Italic)
    Evidently font styles are not constants.

  2. #2

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2009
    Posts
    130

    Resolved Re: Combining font styles?

    Great! Thanks.

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Combining font styles?

    I've always found that counter intuitive... I want it Bold AND Italic... not Bold OR Italic... I get why it is the way it is... I'm just saying... it just seems counter intuitive.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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