How to center text in a MessageBox?

1

I currently have this code:

MessageBox.Show("Verificação da password incorreta \n Insira novamente");

And output looks like this:

Verificação da password incorreta
Insira novamente

How do I make the output centered on the%     

asked by anonymous 02.04.2018 / 04:17

1 answer

1

There's no way. The component was not designed for this.

The solution is to use something else. It can be a message box that you develop.

Have some examples in the Code Project (Also ) and in SO and on MSDN . Neither does what it wants, but it does give an idea of what it needs to do, but has one that is close .

Another solution is to not centralize, think if you really need this.

    
02.04.2018 / 04:30