Possible to control MessageBox location?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In VB.Net 2005, is it possible to make MessageBoxes pop up somewhere other
than centered on the Desktop? I develop on/for dual monitor systems and
would like my MessageBoxes to not be split between the two physical monitors.
 
jmelkerson said:
In VB.Net 2005, is it possible to make MessageBoxes pop up somewhere other
than centered on the Desktop?

Not really, except with a Win32 dialog hook.
 
jmelkerson said:
In VB.Net 2005, is it possible to make MessageBoxes pop up somewhere other
than centered on the Desktop? I develop on/for dual monitor systems and
would like my MessageBoxes to not be split between the two physical monitors.

What code are you using to display message boxes? If, as your message
suggests, you are using MessageBox.Show, then have you tried using one
of the overloads that takes a window handle of an owning window - does
that help?

I suspect Msgbox won't have this facility.
 
Yes, I am using MessageBox.Show. Also, yes, I have tried a method that
accepts the owner arguement. Not really knowing what I was doing, I
specified "Me" as the owner. The MessageBox location did not change as a
result.
 
Back
Top