By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

[Help] Relocating the MSGBOX

P: n/a
Is it possible to programmatically position the
msgbox? I've got dual monitors, and, although
I can place my app in the center of one monitor,
any msgboxes show up split between the two
monitors. Is my only option to add userforms
to replace the msgboxes?

Thanks, in advance, for your help and suggestions.


Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
* "Patrick Pirtle" <pap at skilling dot com> scripsit:
Is it possible to programmatically position the
msgbox? I've got dual monitors, and, although
I can place my app in the center of one monitor,
any msgboxes show up split between the two
monitors. Is my only option to add userforms
to replace the msgboxes?


Maybe with a dialog hook, but that's a lot of effort for a little
effect.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
Thanks for your reply, Herfried. Sounds like my
easiest option is to simply create replacements for
the message boxes.

Herfried K. Wagner [MVP] wrote:
* "Patrick Pirtle" <pap at skilling dot com> scripsit:
Is it possible to programmatically position the
msgbox? I've got dual monitors, and, although
I can place my app in the center of one monitor,
any msgboxes show up split between the two
monitors. Is my only option to add userforms
to replace the msgboxes?


Maybe with a dialog hook, but that's a lot of effort for a little
effect.

Nov 20 '05 #3

P: n/a
* "Patrick Pirtle" <pap at skilling dot com> scripsit:
Thanks for your reply, Herfried. Sounds like my
easiest option is to simply create replacements for
the message boxes.


I think that's not as difficult as it looks.

Here is the reply I posted to your other tread (or is it a bug in my
newsreader?):

If you want to build a replacement, have a look at the 'SystemIcons'
class.

For playing the message sounds, have a look here:

<http://groups.google.com/groups?selm=um%23NZB70DHA.832%40TK2MSFTNGP09.phx.g bl>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.