> I've tested in XP and Vista with both VS 2005 and VS 2008. I get the
> same behavior. It could be a long running bug, or something we don't
> understand about the Show method. Hopefully, somebody else will jump in
> here and open our eyes :)
PvdG42:
This is standard Windows behavior. In MFC, AfxMessageBox() achieves
centering on the parent by using a Windows hook.
I'm sure there is some way to do this in .NET, but I don't know what it is.

Signature
David Wilkinson
Visual C++ MVP
PvdG42 - 15 Jan 2008 18:41 GMT
> This is standard Windows behavior. In MFC, AfxMessageBox() achieves
> centering on the parent by using a Windows hook.
>
> I'm sure there is some way to do this in .NET, but I don't know what it
> is.
I feel better. At least I'm not the only one who doesn't know how to do it
:)
Thanks, David.
PLS - 25 Jan 2008 08:52 GMT
> > I've tested in XP and Vista with both VS 2005 and VS 2008. I get the
> > same behavior. It could be a long running bug, or something we don't
[quoted text clipped - 7 lines]
>
> I'm sure there is some way to do this in .NET, but I don't know what it is.
You do it the way you just said, you use a windows hook.
If it's any help, I have code I can post that uses a windows hook to
place arbitrary text on the buttons of a message box.
++PLS