Change the font in a msgbox!

Solved
iBenny Posted messages 103 Status Member -  
yg_be Posted messages 23437 Registration date   Status Contributor Last intervention   -
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

NHenry Posted messages 15235 Registration date   Status Moderator Last intervention   387
 
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
iBenny Posted messages 103 Status Member 2
 
How? With a sheet (userForm)?
0
yg_be Posted messages 23437 Registration date   Status Contributor Last intervention   Ambassadeur 1 588
 
Hello,
I don't think so.
There are other techniques to display data.
0
iBenny Posted messages 103 Status Member 2
 
For example...
1
yg_be Posted messages 23437 Registration date   Status Contributor Last intervention   1 588 > iBenny Posted messages 103 Status Member
 
it depends a lot on the language and the environment.
0
iBenny Posted messages 103 Status Member 2
 
We're limited with Word's VBA here!
0
yg_be Posted messages 23437 Registration date   Status Contributor Last intervention   1 588 > iBenny Posted messages 103 Status Member
 
Ah, it's about VBA in Word, that's useful information!
Isn't it possible to create a user form for it?
0
iBenny Posted messages 103 Status Member 2 > yg_be Posted messages 23437 Registration date   Status Contributor Last intervention  
 
I 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
Anonymous user
 
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
iBenny Posted messages 103 Status Member 2
 
Understood!!! I didn't specify because I assumed that MsgBox worked the same in all languages invoking MsgBox...

Kind regards
iBenny
0