Results 1 to 3 of 3

Thread: [RESOLVED] Font Styles in a Msgbox

  1. #1

    Thread Starter
    Fanatic Member Lasering's Avatar
    Join Date
    May 2006
    Location
    Lisboa
    Posts
    559

    Resolved [RESOLVED] Font Styles in a Msgbox

    Hi!!

    The title is pretty clear but my question is can i use multiple font styles in a msgbox like:
    in a sentece bold in the next one underlined.
    Controls: XPCC|Quantum
    Windows API'sLINQ to XML SamplesRegex Tutorial

    Albert Einstein:
    "Imagination is more important than knowledge."
    "Everything should be made as simple as possible, but not simpler."
    "Great spirits have often encountered violent opposition from weak minds."

  2. #2
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Re: Font Styles in a Msgbox

    If you want to customize a messagebox, just make your own. There may be a couple of people that say it is possible, but all the work that goes into it, it's not worth it.
    Visual Studio Team Edition 2005
    GDI+ Links: Bob Powell VB.Net Heaven
    API Links: All API Pinvoke.Net
    VB6 to VB.Net: Visual Basic 6 to .NET Function Equivalents (Thread)

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Font Styles in a Msgbox

    People refer to "a MsgBox" for convenience but note that MsgBox is a function, not a form. The function internally creates a form but what it can do is limited to the range of parameters you can pass to the function. Do any of the method arguments indicate that they would allow you to change the font? Nothing is impossible but if you want to affect any form you do not have a direct reference to you would have to use the Windows API.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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