Bold text in MessageBox

It is possible, a message box is a regular window that can be messed with like any other. The code to do so is however a bit gritty. Add a new class to your project and paste this code: using System; using System.Text; using System.Drawing; using System.Windows.Forms; using System.Runtime.InteropServices; class BoldMessageBox : IDisposable { private … Read more

center MessageBox in parent form [duplicate]

I really needed this in C# and found Center MessageBox C#. Here’s a nicely formatted version using System; using System.Windows.Forms; using System.Text; using System.Drawing; using System.Runtime.InteropServices; public class MessageBoxEx { private static IWin32Window _owner; private static HookProc _hookProc; private static IntPtr _hHook; public static DialogResult Show(string text) { Initialize(); return MessageBox.Show(text); } public static DialogResult … Read more

How to change the button text for ‘Yes’ and ‘No’ buttons in the MessageBox.Show dialog?

I didn’t think it would be that simple! go to this link: Download the source. Take the MessageBoxManager.cs file, add it to your project. Now just register it once in your code (for example in the Main() method inside your Program.cs file) and it will work every time you call MessageBox.Show(): MessageBoxManager.OK = “Alright”; … Read more