I have in my application a lot of confirmation message boxes that come up, unfortuntly they are not consistent in how they look. Some have a Windows 98 style, while others have a Windows XP style. They are both being called in the same manner (MessageBox.Show(...)). I was wondering if anyone could tell me what properties control the style of the message box so that I could make them look the same?
Hello Bonstot,
I`m not familiar with your scenario, but in the newest version we have a UltraMessageBoxManager control. My suggestion is to upgrade your veriosn and using this controls instead of Microsoft`s MessageBox.
There are properties:
- Style – Determines the display style if the UltraMessageBox.
- UseAppStyling – whether the component should use application styling (if you are using)
- UseOSThemes – Indicate whether the element of control may be rendering using the OS themes.
Depending of your settings to the control and the OS of the machines (for example one machine is with XP other is with Win 98) then you could get different styles.
If you are using Microsoft`s MessageBox – there are not such kind of properties and the style depends on the OS.
Please if you have any further questions, do not hesitate to ask.
Regards