Bold text in MsgBox control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • genojoe

    #1

    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>Sele ct an item from the list, or enter text that maches one of the
    listed items.<Regular>
  • MyndPhlyp

    #2
    Re: Bold text in MsgBox control


    "genojoe" <genojoe@discus sions.microsoft .comwrote in message
    news:A9395C32-5454-4F9B-A122-C8412BABDD61@mi crosoft.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>Sele ct 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.MessageBo x and use it in place of
    MessageBox.


    Comment

    • GhostInAK

      #3
      Re: Bold text in MsgBox control

      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>Sele ct an item from the list, or enter text that maches one
      of the
      listed items.<Regular>

      Comment

      Working...