The MessageBox always appears in the center of the screen. How can I change its location?
Its looks like you cannot change this behavior of MessageBox. One solution is to derive your own MessageForm class from Form to display your message. Then call its ShowDialog method to show it after you set its Size, Location and StartPosition properties. (If you don’t set the StartPosition , then the Location is ignored.) One of the values for StartPosition is CenterParent which would center your new MessageForm.
Related Questions
- When I run the Waterfalls Screen Saver, a strange dis-colored box appears around the center of the waterfall, making it look kind of fuzzy. Whats wrong?
- The MessageBox always appears in the center of the screen. How can I change its location?
- Why did a yellow exclamation mark (!) or a red cross (X) appears on my photo on the screen?