Change the font in a msgbox!

Solved
Hello,

Is it possible to change the font in the text of a msgbox?

Thank you in advance for your response.
Best regards
iBenny

4 answers

  1. Moderator
    No, you will have to create your own message box, MsgBox is managed by Windows.

    --
    I primarily work in VB6 and VB.NET, with a bit of C#, but moderation often leads me to other languages.
    In VB.NET, be sure to enable "Option Explicit" and "Option Strict"
    0
    1. How? With a sheet (userForm)?
      0
      1. Contributor Ambassador
        Hello,
        I don't think so.
        There are other techniques to display data.
        0
        1. For example...
          1
        2. Contributor Ambassador
          @iBennyit depends a lot on the language and the environment.
          0
        3. We're limited with Word's VBA here!
          0
        4. Contributor Ambassador
          @iBennyAh, it's about VBA in Word, that's useful information!
          Isn't it possible to create a user form for it?
          0
        5. @yg_beI believe this will be the only solution! See the continuation: https://forums.commentcamarche.net/forum/affich-37035526-feuille-userform-avec-parametres?lbm2BbZZmUVwG1YD5q4LB-8Hr_b6vnFBfohvQqla2dE

          Thank you so much...
          iBenny

          PS: to the designers of this forum: when selecting text to format it with the toolbar buttons, please keep the selected text to make it easier to add a secondary format!!! Deselecting it forces us to re-select it and it's... VERY tiring!!! ; )
          0
      2. Good evening

        We are limited with VBA in Word here!

        And no, quite correctly you can find questions that concern
        • VBS
        • VBA:
          • Word
          • Excel
          • Access
          • Powerpoint
          • Other
        • VB6 (or earlier, please specify)
        • VB.Net (Framework 5 is coming, but we can have questions on 3, 3.5, 4 to 4.8) ->
          • Winform
          • WPF
          • ASP
          • Other


        In a broader scope, we sometimes see questions in QBasic, Basic for OpenOffice, and more.

        So specifying which VB you are coding in is more than appropriate to get a suitable answer.
        And don't count on the fact that you've already mentioned it in a previous message; indeed, those who answer may not go through your history, and many requesters regularly switch from one language to another.

        --
        When I was little, the Dead Sea was only sick.
        George Burns
        0
        1. Understood!!! I didn't specify because I assumed that MsgBox worked the same in all languages invoking MsgBox...

          Kind regards
          iBenny
          0