P
Pirmin G.
Hi,
My C# application (form based, winexe) displays MessageBoxes at certain
times. At the moment it centres them on the screen; I want them centered
on the application.
This version (below) of MessageBox.Show should do this for me but I
can't seem to work out what the 1st parameter should be.
public static DialogResult Show(
IWin32Window owner,
string text, string caption,
MessageBoxButtons buttons, MessageBoxIcon icon);
MessageBox.Show( ??WHAT-GOES-HERE??,
"Text", "Text", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
I can't work out what the 1st paramaters variable should be.
'this.Handle' does not work.
Thanks and regards,
Pirmin
My C# application (form based, winexe) displays MessageBoxes at certain
times. At the moment it centres them on the screen; I want them centered
on the application.
This version (below) of MessageBox.Show should do this for me but I
can't seem to work out what the 1st parameter should be.
public static DialogResult Show(
IWin32Window owner,
string text, string caption,
MessageBoxButtons buttons, MessageBoxIcon icon);
MessageBox.Show( ??WHAT-GOES-HERE??,
"Text", "Text", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
I can't work out what the 1st paramaters variable should be.
'this.Handle' does not work.
Thanks and regards,
Pirmin