msgbox text align

  • Thread starter Thread starter Bull
  • Start date Start date
B

Bull

Hi

I am trying to centre align the text in a vb.net windows application but
cant find a way to do it. It defaulted to centre in vb6.

any ideas please?
 
Bull,

I tried a messagebox wih some long text and both in VB6 and VB .NET it
appeared the same.

Can you give us an example text that appears differently?

Best Regards,
Y. Sivaram
 
* "Bull said:
I am trying to centre align the text in a vb.net windows application but
cant find a way to do it. It defaulted to centre in vb6.

I don't see any difference in VB6's and VB.NET's messagebox. There is
no easy way to change alignment of the text (there will be a way using
Win32 dialog hooks, but that's very complicated and will prevent the
solution from running unter Lin*x, for example).
 
Doh

So it does. I am POSITIVE that i have seen the text centered in VB6, (But i
could be wrong) LOL

Sorry guys
 
I am trying to centre align the text in a vb.net windows application but
cant find a way to do it. It defaulted to centre in vb6.

Ultimately I believe you're just calling the Win32 MessageBox() API
function, so you're bound by its limitations and the hoops you'd have to go
through to change its behavior.
 
Hi Bull,

With me it is standard centered in VB.net however not in this case
"Hello" & VBCRLF & "is not centered however this part is"

Cor
 
Back
Top