Page 1 of 1
Controlling the size of the "MessageBox"
Posted: Thu Apr 16, 2015 6:50 pm
by AdrianGray
I am reporting errors from an SQL Server script. Occasionally the message is very large and the MessageBox extends below the bottom of the screen, hiding the buttons from the user. Is there a another option I should use which has scroll bars... so that the buttons remain visible (EG A dialog) or is there a way to configure the MessageBox? Thanks, Adrian.
Re: Controlling the size of the "MessageBox"
Posted: Fri Apr 17, 2015 10:55 am
by bokkie
Adrian,
Just thinking aloud here but do you get the text before the message box is given it? If so, you could think of splicing it up and inserting some new line characters into the reassembled string. That should let the message box resize itself more "intelligently" but I can't guarantee it'll look 100% the way you'd like it.
Re: Controlling the size of the "MessageBox"
Posted: Fri Apr 17, 2015 12:49 pm
by FrancescoT
Dear Adrian,
you could create a custom dialog with a scrollable text-control to use in place of the standard Message-Box ... or you may display a generic error with a Message-Box and to store more detailed information in a log file.
Regards