473,382 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Bold text in MsgBox control

Is it possible to include one line of bold text followed by one line of
regular text in the MsgBox control? What I would like to see is the
following lines
<Bold>The text you entered isn't an item in the list.<Bold>
<Regular>Select an item from the list, or enter text that maches one of the
listed items.<Regular>
Jul 24 '06 #1
2 3509

"genojoe" <ge*****@discussions.microsoft.comwrote in message
news:A9**********************************@microsof t.com...
Is it possible to include one line of bold text followed by one line of
regular text in the MsgBox control? What I would like to see is the
following lines
<Bold>The text you entered isn't an item in the list.<Bold>
<Regular>Select an item from the list, or enter text that maches one of
the
listed items.<Regular>
Not to my knowledge. As an alternative though you could use a relatively
simple form to replace MessageBox. If you want to go one step further and
retain all the functionality of MessageBox as well as having the option to
boldface (et al) selected portions of the string you could build a Class
that Inherits System.Windows.Forms.MessageBox and use it in place of
MessageBox.
Jul 24 '06 #2
Hello genojoe,

MyndPhlyp offers an excellent solution.

I would question the practicality of such a msgbox though. It is fairly
useless. More than that.. it's annoying. I would opt to use an ErrorProvider
control instead.

-Boo
Is it possible to include one line of bold text followed by one line
of
regular text in the MsgBox control? What I would like to see is the
following lines
<Bold>The text you entered isn't an item in the list.<Bold>
<Regular>Select an item from the list, or enter text that maches one
of the
listed items.<Regular>

Jul 24 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Imaya Kumar | last post by:
Hi, i'm developing an editor in VS.NET using Rich Text Box Control. I need to make a selected text Bold. how can i do this? also i will have an Italic Button too. If i click Bold button the...
6
by: Ronny sigo | last post by:
Hello all, I have made a form with a lot of entryfields and one button which, when clicked on, transforms all of the entryfields values into a MS Word document. All the formatting is done...
1
by: VicB | last post by:
A report requires a line containing author and title. The author is required in bold and the title in bold italic font. Only one space is required between the author and title, which are variable...
3
by: TM | last post by:
I have a messagebox and I would like to display a message along with the some selected text I am searching for. But I would like the selected text to appear as bold. I would like my message...
4
by: pamelafluente | last post by:
Hi I noticed that if I use a bold font for 1 TreeNode of a TreeView several times the string does not fit anymore and gets truncated. How can I avoid that ? Any suggestionis appreciated ...
5
by: Coll | last post by:
Hi - I have a function that returns a value to a text field. I need to bold a portion of the text field to match up with the rest of the form. I'd rather not split it into two separate text fields...
8
by: Alexey Smirnov | last post by:
How to make bold part of the text in a Windows.Forms.Label? Thank you.
6
by: tmoon3 | last post by:
Hello All, I have a report where it lista employees that need to have an eval done in the next 30 days. If the employee has a 3 month, 6 month or 12 month eval due in the next 30 days it lists...
0
by: bettiahamit | last post by:
here i created sequence no. with every paragraph line .. like... <p local_id = P-100>aaaaaaaaaaaaaaaaaaaaaaaaa<\p> <p local_id = P-101>bbbbbbbbbbbbbbbbbbbbbbbbb<\p> <p local_id =...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.