Which is the mathematic formula to calculate the size and positions for this window?
INTRODUCTION: I'm using a custom messagebox class which was originally written by @Hans Passant here: Winforms-How can I make MessageBox appear centered on MainForm? (The modified version that I'm using is at bottom of this question) The custom messagebox can receive a custom text font to display it. This is an usage example: Using New CenteredMessageBox(Me, _ New Font(New FontFamily("Lucida Console"), 16, FontStyle.Bold)) MessageBox.Show("Test Text", "Test Title", MessageBoxButtons.YesNo, MessageBoxIcon.Question) End Using THE PROBLEM: All the contents of the window need to be resized