Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
How to Change the Font of MessageBox
April 15, 2010
can anybody please tell me,how to change the font or back color of a messagebox in vb.net(windows application)
Ex: MessageBox.Show("Please Check Your Name", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information)
i want to change the backcolor and font of the above message.
Posted Date: April 15, 2010 Points: 5
As far as I know...you can not change the font color, style of the message of the MessageBox.Show() method.
You can write your custom form which act like message box and you can display your own custom message and change the font size and style.
Mark As Answer if this solve your problem
Posted Date: April 19, 2010 Points: 5
It is not possible to format the MessageBox any more than what the MessageBox class provides; just look at the documentation. If you need to do anything different from what is documented, it is easier to just create a form yourself that does what you need an then you have much, much more flexibility.
Be helpful and enjoy life because it comes only onces. Give all the happiness to yours and remember it doesn't comes by money ...
Posted Date: April 21, 2010 Points: 5
You can not change the default Message Box provided but you can code your own that can behave same like that MessageBox Window ..
though if you want to do it force fully it can be done with Win32 API Function by force fully getting the handle of the TextBox Window Generated ..but it will be very hard to do for you as Creating our own new MessageBox will be easier approach
Posted Date: August 03, 2010 Points: 5
No Possible To Change The Font Of Message Box.
Thanks & Regards,
Posted Date: December 07, 2010 Points: 5
Me.Font = _
New Font( _
Posted Date: January 17, 2012 Points: 20
Check this Article:
Regards, Lakshmi Naraayanan.S
To post reply
Related Questions Related Questions
Change font styles dynamically
How To Change the font size of message
How can i change font of Grideview combo suggestion list
How to write MessageBox in ASP.NET
How to change CrstalReport Database in Crystal Report
change row color in GridView
change background color of cell in Gridview programatically
How to do Yes or No confirmation messagebox in asp .net
Change GridView row color based on condition
How to re size the text (Font) in asp.net website
Latest Forum Questions From The Same Category
database is read-only.
editor for visual basic with c#.net
How to get phone number in .Net windows application?
while accessing method from proxy giving an unauthorized access
How to make search between two dates accept null not obligatory search proplem
Create a Windows form application using Excel as database..
Recieve Data From Serial Com Port C# In One Line And Convert To integer
display parent data and child data as a row group in one datagridview using c# winform
enter key event in windows app c#.net
windows appplication c#.net
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend