You are not logged in.

#1 13 Jan 2011 00:06

arash
Member
Registered: 27 Apr 2010
Posts: 27

A multi-line MessageBox with individual alignment

May I ask how can I make a multi-line MessageBox which every line aligned individualy?
For example, I use the piece of code to do so, it works for me but you know, this is not a way you call it The Best; because aligning with spaces is a bit tricky. I'm looking for a better solution.
Thanks.

Dim quoMsg, quoDignitary, quoTitle
    quoMsg = "Patriots always talk of dying for their country and never of killing for their country."
    quoDignitary = "Bertrand Russell "
    quoTitle = "Quotation :                                                                               "

Msgbox quoMsg & vbNewLine & quodignitary , vbMsgBoxRight, quoTitle

Last edited by arash (13 Jan 2011 00:09)

Offline

Board footer

Powered by